AppInfoT.setAsLastUsedForType

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.

template AppInfoT()
override
bool
setAsLastUsedForType
()

Parameters

contentType string

the content type.

Return Value

Type: bool

true on success, false on error.