### Method

# GLib BookmarkFile get_app_info

deprecated: 2.66 since: 2.12

#### Declaration

    gboolean
    g_bookmark_file_get_app_info (
      GBookmarkFile* bookmark,
      const gchar* uri,
      const gchar* name,
      gchar** exec,
      guint* count,
      time_t* stamp,
      GError** error
    )

#### Description

Gets the registration information of `app_name` for the bookmark for `uri`. See `g_bookmark_file_set_application_info()` 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.

Available since: 2.12

Deprecated since: 2.66

Use `g_bookmark_file_get_application_info()` instead, as `time_t` is deprecated due to the year 2038 problem.

#### Parameters

`uri`

  Type: `const gchar*`

  A valid URI.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`name`

  Type: `const gchar*`

  An application’s name.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`exec`

  Type: `gchar**`

  Return location for the command line of the application, or `NULL`.

  The argument will be set by the function.
  The argument can be `NULL`.
  The caller of the method takes ownership of the data, and is responsible for freeing it.
  The value is a NUL terminated UTF-8 string.

`count`

  Type: `guint*`

  Return location for the registration count, or `NULL`.

  The argument will be set by the function.
  The argument can be `NULL`.

`stamp`

  Type: `time_t*`

  Return location for the last registration time, or `NULL`.

  The argument will be set by the function.
  The argument can be `NULL`.
  The caller of the method takes ownership of the data, and is responsible for freeing it.

`error`

  Type: `GError **`

  The return location for a recoverable error.

  The argument can be `NULL`.
  If the return location is not `NULL`, then you must initialize it to a `NULL` `GError*`.
  The argument will be left initialized to `NULL` by the method if there are no errors.
  In case of error, the argument will be set to a newly allocated `GError`; the caller will take ownership of the data, and be responsible for freeing it.

#### Return value

Type: `gboolean`

`TRUE` on success.