BookmarkFile.getAppInfo

Gets the registration informations of app_name for the bookmark for uri. See g_bookmark_file_set_app_info() for more informations 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. Since 2.12

class BookmarkFile
int
getAppInfo
(
string uri
,
string name
,
out string exec
,
out uint count
,
out uint stamp
)

Parameters

uri string

a valid URI

name string

an application's name

exec string

location for the command line of the application, or NULL

count uint

return location for the registration count, or NULL

stamp uint

return location for the last registration time, or NULL

Return Value

Type: int

TRUE on success.

Throws

GException on failure.

Meta