AppInfo.setAsLastUsedForType

bool setAsLastUsedForType(string contentType)

Sets the application as the last used application for a given type. This will make the application appear as first in the list returned by [gio.app_info.AppInfo.getRecommendedForType], regardless of the default application for that content type.

Parameters

contentTypethe content type.

Returns

true on success, false on error.

Throws

[ErrorWrap]