BookmarkFile.getAppInfo

bool getAppInfo(string uri, string name, out string exec, out uint count, out long stamp)

Gets the registration information of app_name for the bookmark for uri. See [glib.bookmark_file.BookmarkFile.setApplicationInfo] for more information about the returned data.

The string returned in app_exec must be freed.

In the event the URI cannot be found, false is returned and error is set to G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the event that no application with name app_name has registered a bookmark for uri, false is returned and error is set to G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. In the event that unquoting the command line fails, an error of the G_SHELL_ERROR domain is set and false is returned.

Parameters

uria valid URI
namean application's name
execreturn location for the command line of the application, or null
countreturn location for the registration count, or null
stampreturn location for the last registration time, or null

Returns

true on success.

Throws

[BookmarkFileException]

Deprecated

Use [glib.bookmark_file.BookmarkFile.getApplicationInfo] instead, as

time_t is deprecated due to the year 2038 problem.