mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-26 09:29:30 -04:00
lib: Add xdg_app_installation_get_path
This commit is contained in:
1 parent
ac851cae9e
commit
e0b08161d7
2 files changed
+14
No files matched your search
@@ -155,6 +155,19 @@ xdg_app_installation_get_is_user (XdgAppInstallation *self)
|
||||
return xdg_app_dir_is_user (priv->dir);
|
||||
}
|
||||
|
||||
/**
|
||||
* xdg_app_installation_get_path
|
||||
*
|
||||
* Returns: (transfer full): an #GFile
|
||||
*/
|
||||
GFile *
|
||||
xdg_app_installation_get_path (XdgAppInstallation *self)
|
||||
{
|
||||
XdgAppInstallationPrivate *priv = xdg_app_installation_get_instance_private (self);
|
||||
|
||||
return g_object_ref (xdg_app_dir_get_path (priv->dir));
|
||||
}
|
||||
|
||||
/**
|
||||
* xdg_app_installation_launch:
|
||||
* @self: a #XdgAppInstallation
|
||||
|
||||
@@ -79,6 +79,7 @@ typedef void (*XdgAppProgressCallback)(const char *status,
|
||||
gpointer user_data);
|
||||
|
||||
XDG_APP_EXTERN gboolean xdg_app_installation_get_is_user (XdgAppInstallation *self);
|
||||
XDG_APP_EXTERN GFile *xdg_app_installation_get_path (XdgAppInstallation *self);
|
||||
XDG_APP_EXTERN gboolean xdg_app_installation_launch (XdgAppInstallation *self,
|
||||
const char *name,
|
||||
const char *arch,
|
||||
|
||||
Reference in new issue
Block a user