Top | ![]() |
![]() |
![]() |
![]() |
const gchar * | snapd_app_get_name () |
gboolean | snapd_app_get_active () |
GStrv | snapd_app_get_aliases () |
const gchar * | snapd_app_get_common_id () |
SnapdDaemonType | snapd_app_get_daemon_type () |
const gchar * | snapd_app_get_desktop_file () |
gboolean | snapd_app_get_enabled () |
const gchar * | snapd_app_get_snap () |
gboolean | active | Read / Write / Construct Only |
GStrv | aliases | Read / Write / Construct Only |
char * | common-id | Read / Write / Construct Only |
SnapdDaemonType | daemon-type | Read / Write / Construct Only |
char * | desktop-file | Read / Write / Construct Only |
gboolean | enabled | Read / Write / Construct Only |
char * | name | Read / Write / Construct Only |
char * | snap | Read / Write / Construct Only |
A SnapdApp contains information about an application that snapd provides.
Apps are retrieved using snapd_snap_get_apps()
.
const gchar *
snapd_app_get_name (SnapdApp *app
);
Get the name of this app.
Since: 1.0
gboolean
snapd_app_get_active (SnapdApp *app
);
Get if this service is active.
Since: 1.25
GStrv
snapd_app_get_aliases (SnapdApp *app
);
snapd_app_get_aliases
has been deprecated since version 1.25 and should not be used in newly-written code.
Get the aliases for this app.
Since: 1.7
const gchar *
snapd_app_get_common_id (SnapdApp *app
);
Get the common ID associated with this app.
Since: 1.41
SnapdDaemonType
snapd_app_get_daemon_type (SnapdApp *app
);
Get the daemon type for this app.
Since: 1.9
const gchar *
snapd_app_get_desktop_file (SnapdApp *app
);
Get the path to the desktop file for this app.
Since: 1.14
gboolean
snapd_app_get_enabled (SnapdApp *app
);
Get if this service is enabled.
Since: 1.25
“active”
property “active” gboolean
TRUE if active.
Owner: SnapdApp
Flags: Read / Write / Construct Only
Default value: FALSE
“aliases”
property “aliases” GStrv
App aliases.
Owner: SnapdApp
Flags: Read / Write / Construct Only
“common-id”
property “common-id” char *
Common ID.
Owner: SnapdApp
Flags: Read / Write / Construct Only
Default value: NULL
“daemon-type”
property“daemon-type” SnapdDaemonType
Daemon type.
Owner: SnapdApp
Flags: Read / Write / Construct Only
Default value: SNAPD_DAEMON_TYPE_UNKNOWN
“desktop-file”
property “desktop-file” char *
App desktop file path.
Owner: SnapdApp
Flags: Read / Write / Construct Only
Default value: NULL
“enabled”
property “enabled” gboolean
TRUE if enabled.
Owner: SnapdApp
Flags: Read / Write / Construct Only
Default value: FALSE
“name”
property “name” char *
App name.
Owner: SnapdApp
Flags: Read / Write / Construct Only
Default value: NULL