Snapd.Client¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Snapd.Client(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Snapd.Clientcontains connection state with snapd.New in version 1.0.
- classmethod new()¶
- Returns:
a new
Snapd.Client- Return type:
Create a new client to talk to snapd.
New in version 1.0.
- classmethod new_from_socket(socket)¶
- Parameters:
socket (
Gio.Socket) – AGio.Socketthat is connected to snapd.- Returns:
a new
Snapd.Client- Return type:
Create a new client to talk on an existing socket.
New in version 1.5.
- abort_change_async(id, cancellable, callback, *user_data)¶
- Parameters:
id (
str) – a change ID to abort.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously abort a change. See
Snapd.Client.abort_change_sync() for more information.New in version 1.30.
- abort_change_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
Snapd.ChangeorNoneon error.- Return type:
Complete request started with
Snapd.Client.abort_change_async(). SeeSnapd.Client.abort_change_sync() for more information.New in version 1.30.
- abort_change_sync(id, cancellable)¶
- Parameters:
id (
str) – a change ID to abort.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
Snapd.ChangeorNoneon error.- Return type:
Get information on a change.
New in version 1.30.
- add_assertions_async(assertions, cancellable, callback, *user_data)¶
- Parameters:
assertions ([
str]) – assertions to add.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously add an assertion. See
Snapd.Client.add_assertions_sync() for more information.New in version 1.8.
- add_assertions_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.add_assertions_async(). SeeSnapd.Client.add_assertions_sync() for more information.New in version 1.8.
- add_assertions_sync(assertions, cancellable)¶
- Parameters:
assertions ([
str]) – assertions to add.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Add an assertion.
New in version 1.8.
- alias_async(snap, app, alias, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
snap (
str) – the name of the snap to modify.app (
str) – an app in the snap to make the alias to.alias (
str) – the name of the alias (i.e. the command that will run this app).progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously create an alias to an app. See
Snapd.Client.alias_sync() for more information.New in version 1.25.
- alias_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.alias_async(). SeeSnapd.Client.alias_sync() for more information.New in version 1.25.
- alias_sync(snap, app, alias, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
snap (
str) – the name of the snap to modify.app (
str) – an app in the snap to make the alias to.alias (
str) – the name of the alias (i.e. the command that will run this app).progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Return type:
Create an alias to an app.
New in version 1.25.
- buy_async(id, amount, currency, cancellable, callback, *user_data)¶
- Parameters:
id (
str) – id of snap to buy.amount (
float) – amount of currency to spend, e.g. 0.99.currency (
str) – the currency to buy with as an ISO 4217 currency code, e.g. “NZD”.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously buy a snap from the store. See
Snapd.Client.buy_sync() for more information.New in version 1.3.
- buy_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.buy_async(). SeeSnapd.Client.buy_sync() for more information.New in version 1.3.
- buy_sync(id, amount, currency, cancellable)¶
- Parameters:
id (
str) – id of snap to buy.amount (
float) – amount of currency to spend, e.g. 0.99.currency (
str) – the currency to buy with as an ISO 4217 currency code, e.g. “NZD”.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Buy a snap from the store. Once purchased, this snap can be installed with
Snapd.Client.install2_sync().New in version 1.3.
- check_buy_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously check if able to buy snaps. See
Snapd.Client.check_buy_sync() for more information.New in version 1.3.
- check_buy_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.check_buy_async(). SeeSnapd.Client.check_buy_sync() for more information.New in version 1.3.
- check_buy_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
- Return type:
Check if able to buy snaps.
New in version 1.3.
- check_themes_async(gtk_theme_names, icon_theme_names, sound_theme_names, cancellable, callback, *user_data)¶
- Parameters:
gtk_theme_names ([
str] orNone) – a list of GTK theme names.icon_theme_names ([
str] orNone) – a list of icon theme names.sound_theme_names ([
str] orNone) – a list of sound theme names.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously check for snaps providing the requested desktop themes. See
Snapd.Client.check_themes_sync() for more information.New in version 1.60.
- check_themes_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
Trueon success.- gtk_theme_status:
status of GTK themes.
- icon_theme_status:
status of icon themes.
- sound_theme_status:
status of sound themes.
- Return type:
(
bool, gtk_theme_status: {str:Snapd.ThemeStatus}, icon_theme_status: {str:Snapd.ThemeStatus}, sound_theme_status: {str:Snapd.ThemeStatus})
Complete request started with
Snapd.Client.check_themes_async(). SeeSnapd.Client.check_themes_sync() for more information.New in version 1.60.
- check_themes_sync(gtk_theme_names, icon_theme_names, sound_theme_names, cancellable)¶
- Parameters:
gtk_theme_names ([
str] orNone) – a list of GTK theme names.icon_theme_names ([
str] orNone) – a list of icon theme names.sound_theme_names ([
str] orNone) – a list of sound theme names.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- gtk_theme_status:
status of GTK themes.
- icon_theme_status:
status of icon themes.
- sound_theme_status:
status of sound themes.
- Return type:
(
bool, gtk_theme_status: {str:Snapd.ThemeStatus}, icon_theme_status: {str:Snapd.ThemeStatus}, sound_theme_status: {str:Snapd.ThemeStatus})
Check the status of snap packaged versions of named desktop themes. For each theme, it will determine whether it is already installed, uninstalled but available on the store, or unavailable.
New in version 1.60.
- connect_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
This method is no longer required and does nothing, snapd-glib now connects on demand.
New in version 1.3.
Deprecated since version 1.24.
- connect_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
Trueif successfully connected to snapd.- Return type:
Complete request started with
Snapd.Client.connect_async(). SeeSnapd.Client.connect_sync() for more information.New in version 1.3.
- connect_interface_async(plug_snap, plug_name, slot_snap, slot_name, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
plug_snap (
str) – name of snap containing plug.plug_name (
str) – name of plug to connect.slot_snap (
str) – name of snap containing socket.slot_name (
str) – name of slot to connect.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously connect two interfaces together. See
Snapd.Client.connect_interface_sync() for more information.New in version 1.0.
- connect_interface_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.connect_interface_async(). SeeSnapd.Client.connect_interface_sync() for more information.New in version 1.0.
- connect_interface_sync(plug_snap, plug_name, slot_snap, slot_name, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
plug_snap (
str) – name of snap containing plug.plug_name (
str) – name of plug to connect.slot_snap (
str) – name of snap containing socket.slot_name (
str) – name of slot to connect.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Connect two interfaces together. An asynchronous version of this function is
Snapd.Client.connect_interface_async().New in version 1.0.
- connect_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone- Raises:
- Returns:
Trueif successfully connected to snapd.- Return type:
This method is no longer required and does nothing, snapd-glib now connects on demand.
New in version 1.0.
- create_user_async(email, flags, cancellable, callback, *user_data)¶
- Parameters:
email (
str) – the email of the user to create.flags (
Snapd.CreateUserFlags) – a set ofSnapd.CreateUserFlagsto control how the user account is created.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously create a local user account. See
Snapd.Client.create_user_sync() for more information.New in version 1.3.
- create_user_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
Snapd.UserInformationorNoneon error.- Return type:
Complete request started with
Snapd.Client.create_user_async(). SeeSnapd.Client.create_user_sync() for more information.New in version 1.3.
- create_user_sync(email, flags, cancellable)¶
- Parameters:
email (
str) – the email of the user to create.flags (
Snapd.CreateUserFlags) – a set ofSnapd.CreateUserFlagsto control how the user account is created.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
Snapd.UserInformationorNoneon error.- Return type:
Create a local user account for the given user.
New in version 1.3.
- create_users_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously create local user accounts using the system-user assertions that are valid for this device. See
Snapd.Client.create_users_sync() for more information.New in version 1.3.
- create_users_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.UserInformationorNoneon error.- Return type:
Complete request started with
Snapd.Client.create_users_async(). SeeSnapd.Client.create_users_sync() for more information.New in version 1.3.
- create_users_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
an array of
Snapd.UserInformationorNoneon error.- Return type:
Create local user accounts using the system-user assertions that are valid for this device.
New in version 1.3.
- disable_aliases_async(snap, aliases, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
snap (
str) – the name of the snap to modify.aliases ([
str]) – the aliases to modify.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously change the state of aliases. See
Snapd.Client.disable_aliases_sync() for more information.New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Client.unalias_async()
- disable_aliases_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.disable_aliases_async(). SeeSnapd.Client.disable_aliases_sync() for more information.New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Client.unalias_finish()
- disable_aliases_sync(snap, aliases, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
snap (
str) – the name of the snap to modify.aliases ([
str]) – the aliases to modify.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Change the state of aliases.
New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Client.unalias_sync()
- disable_async(name, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to disable.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously disable an installed snap. See
Snapd.Client.disable_sync() for more information.New in version 1.0.
- disable_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.disable_async(). SeeSnapd.Client.disable_sync() for more information.New in version 1.0.
- disable_sync(name, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
name (
str) – name of snap to disable.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Disable an installed snap.
New in version 1.0.
- disconnect_interface_async(plug_snap, plug_name, slot_snap, slot_name, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
plug_snap (
str) – name of snap containing plug.plug_name (
str) – name of plug to disconnect.slot_snap (
str) – name of snap containing socket.slot_name (
str) – name of slot to disconnect.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously disconnect two interfaces. See
Snapd.Client.disconnect_interface_sync() for more information.New in version 1.0.
- disconnect_interface_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.disconnect_interface_async(). SeeSnapd.Client.disconnect_interface_sync() for more information.New in version 1.0.
- disconnect_interface_sync(plug_snap, plug_name, slot_snap, slot_name, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
plug_snap (
str) – name of snap containing plug.plug_name (
str) – name of plug to disconnect.slot_snap (
str) – name of snap containing socket.slot_name (
str) – name of slot to disconnect.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Disconnect two interfaces.
New in version 1.0.
- download_async(name, channel, revision, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to download.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously download a snap. See
Snapd.Client.download_sync() for more information.New in version 1.54.
- download_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
the snap contents or
Noneon error.- Return type:
Complete request started with
Snapd.Client.download_async(). SeeSnapd.Client.download_sync() for more information.New in version 1.54.
- download_sync(name, channel, revision, cancellable)¶
- Parameters:
name (
str) – name of snap to download.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
the snap contents or
Noneon error.- Return type:
Download the given snap.
New in version 1.54.
- enable_aliases_async(snap, aliases, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
snap (
str) – the name of the snap to modify.aliases ([
str]) – the aliases to modify.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously change the state of aliases. See
Snapd.Client.enable_aliases_sync() for more information.New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Client.alias_async()
- enable_aliases_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.enable_aliases_async(). SeeSnapd.Client.enable_aliases_sync() for more information.New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Client.unalias_finish()
- enable_aliases_sync(snap, aliases, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
snap (
str) – the name of the snap to modify.aliases ([
str]) – the aliases to modify.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Change the state of aliases.
New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Client.alias_sync()
- enable_async(name, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to enable.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously enable an installed snap. See
Snapd.Client.enable_sync() for more information.New in version 1.0.
- enable_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.enable_async(). SeeSnapd.Client.enable_sync() for more information.New in version 1.0.
- enable_sync(name, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
name (
str) – name of snap to enable.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Enable an installed snap.
New in version 1.0.
- find_async(flags, query, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.FindFlags) – a set ofSnapd.FindFlagsto control how the find is performed.query (
strorNone) – query string to send orNoneto return featured snaps.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously find snaps in the store. See
Snapd.Client.find_sync() for more information.New in version 1.0.
- find_category_async(flags, category, query, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.FindFlags) – a set ofSnapd.FindFlagsto control how the find is performed.category (
strorNone) – store category to search in orNoneto search in all categories.query (
strorNone) – query string to send orNoneto get all snaps from the given category.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously find snaps in the store. See
Snapd.Client.find_category_sync() for more information.New in version 1.64.
- find_category_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- suggested_currency:
location to store the ISO 4217 currency that is suggested to purchase with.
- Return type:
([
Snapd.Snap], suggested_currency:str)
Complete request started with
Snapd.Client.find_async(). SeeSnapd.Client.find_sync() for more information.New in version 1.64.
- find_category_sync(flags, category, query, cancellable)¶
- Parameters:
flags (
Snapd.FindFlags) – a set ofSnapd.FindFlagsto control how the find is performed.category (
strorNone) – store category to search in orNoneto search in all categories.query (
strorNone) – query string to send orNoneto get all snaps from the given category.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- suggested_currency:
location to store the ISO 4217 currency that is suggested to purchase with.
- Return type:
([
Snapd.Snap], suggested_currency:str)
Find snaps in the store.
New in version 1.64.
- find_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- suggested_currency:
location to store the ISO 4217 currency that is suggested to purchase with.
- Return type:
([
Snapd.Snap], suggested_currency:str)
Complete request started with
Snapd.Client.find_async(). SeeSnapd.Client.find_sync() for more information.New in version 1.0.
- find_refreshable_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously find snaps in store that are newer revisions than locally installed versions. See
Snapd.Client.find_refreshable_sync() for more information.New in version 1.8.
- find_refreshable_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- Return type:
Complete request started with
Snapd.Client.find_refreshable_async(). SeeSnapd.Client.find_refreshable_sync() for more information.New in version 1.5.
- find_refreshable_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- Return type:
Find snaps in store that are newer revisions than locally installed versions.
New in version 1.8.
- find_section_async(flags, section, query, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.FindFlags) – a set ofSnapd.FindFlagsto control how the find is performed.section (
strorNone) – store section to search in orNoneto search in all sections.query (
strorNone) – query string to send orNoneto get all snaps from the given section.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously find snaps in the store. See
Snapd.Client.find_section_sync() for more information.New in version 1.7.
Deprecated since version 1.64: Use
Snapd.Client.find_category_async()
- find_section_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- suggested_currency:
location to store the ISO 4217 currency that is suggested to purchase with.
- Return type:
([
Snapd.Snap], suggested_currency:str)
Complete request started with
Snapd.Client.find_async(). SeeSnapd.Client.find_sync() for more information.New in version 1.7.
Deprecated since version 1.64: Use
Snapd.Client.find_category_finish()
- find_section_sync(flags, section, query, cancellable)¶
- Parameters:
flags (
Snapd.FindFlags) – a set ofSnapd.FindFlagsto control how the find is performed.section (
strorNone) – store section to search in orNoneto search in all sections.query (
strorNone) – query string to send orNoneto get all snaps from the given section.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- suggested_currency:
location to store the ISO 4217 currency that is suggested to purchase with.
- Return type:
([
Snapd.Snap], suggested_currency:str)
Find snaps in the store.
New in version 1.7.
Deprecated since version 1.64: Use
Snapd.Client.find_category_sync()
- find_sync(flags, query, cancellable)¶
- Parameters:
flags (
Snapd.FindFlags) – a set ofSnapd.FindFlagsto control how the find is performed.query (
strorNone) – query string to send orNoneto return featured snaps.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- suggested_currency:
location to store the ISO 4217 currency that is suggested to purchase with.
- Return type:
([
Snapd.Snap], suggested_currency:str)
Find snaps in the store.
New in version 1.0.
- follow_logs_async(names, log_callback, log_callback_data, cancellable, callback, *user_data)¶
- Parameters:
names ([
str] orNone) – a null-terminated array of service names orNone.log_callback (
Snapd.LogCallback) – aSnapd.LogCallbackto call when a log is received.log_callback_data (
objectorNone) – the data to pass to log_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Follow logs for snap services. This call will only complete if snapd closes the connection and will stop any other request on this client from being sent.
New in version 1.64.
- follow_logs_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
Trueon success.- Return type:
Complete request started with
Snapd.Client.follow_logs_async(). SeeSnapd.Client.follow_logs_sync() for more information.New in version 1.64.
- follow_logs_sync(names, log_callback, log_callback_data, cancellable)¶
- Parameters:
names ([
str] orNone) – a null-terminated array of service names orNone.log_callback (
Snapd.LogCallback) – aSnapd.LogCallbackto call when a log is received.log_callback_data (
objectorNone) – the data to pass to log_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
Trueon success.- Return type:
Follow logs for snap services. This call will only complete if snapd closes the connection and will stop any other request on this client from being sent.
New in version 1.64.
- get_aliases_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get the available aliases. See
Snapd.Client.get_aliases_sync() for more information.New in version 1.8.
- get_aliases_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.AliasorNoneon error.- Return type:
Complete request started with
Snapd.Client.get_aliases_async(). SeeSnapd.Client.get_aliases_sync() for more information.New in version 1.8.
- get_aliases_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
an array of
Snapd.AliasorNoneon error.- Return type:
Get the available aliases.
New in version 1.8.
- get_allow_interaction()¶
-
Get whether snapd operations are allowed to interact with the user.
New in version 1.19.
- get_apps2_async(flags, snaps, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.GetAppsFlags) – a set ofSnapd.GetAppsFlagsto control what results are returned.snaps ([
str] orNone) – A list of snap names to return results for. IfNoneor empty then apps for all installed snaps are returned.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get information on installed apps. See
Snapd.Client.get_apps2_sync() for more information.New in version 1.45.
- get_apps2_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.get_apps2_async(). SeeSnapd.Client.get_apps2_sync() for more information.New in version 1.45.
- get_apps2_sync(flags, snaps, cancellable)¶
- Parameters:
flags (
Snapd.GetAppsFlags) – a set ofSnapd.GetAppsFlagsto control what results are returned.snaps ([
str] orNone) – A list of snap names to return results for. IfNoneor empty then apps for all installed snaps are returned.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Get information on installed apps.
New in version 1.45.
- get_apps_async(flags, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.GetAppsFlags) – a set ofSnapd.GetAppsFlagsto control what results are returned.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get information on installed apps. See
Snapd.Client.get_apps_sync() for more information.New in version 1.25.
Deprecated since version 1.45: Use
Snapd.Client.get_apps2_async()
- get_apps_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.get_apps_async(). SeeSnapd.Client.get_apps_sync() for more information.New in version 1.25.
Deprecated since version 1.45: Use
Snapd.Client.get_apps2_finish()
- get_apps_sync(flags, cancellable)¶
- Parameters:
flags (
Snapd.GetAppsFlags) – a set ofSnapd.GetAppsFlagsto control what results are returned.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Get information on installed apps.
New in version 1.25.
Deprecated since version 1.45: Use
Snapd.Client.get_apps2_sync()
- get_assertions_async(type, cancellable, callback, *user_data)¶
- Parameters:
type (
str) – assertion type to get.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get assertions. See
Snapd.Client.get_assertions_sync() for more information.New in version 1.8.
- get_assertions_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of assertions or
Noneon error.- Return type:
[
str]
Complete request started with
Snapd.Client.get_assertions_async(). SeeSnapd.Client.get_assertions_sync() for more information.New in version 1.8.
- get_assertions_sync(type, cancellable)¶
- Parameters:
type (
str) – assertion type to get.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
an array of assertions or
Noneon error.- Return type:
[
str]
Get assertions.
New in version 1.8.
- get_auth_data()¶
- Returns:
a
Snapd.AuthDataorNone.- Return type:
Get the authorization data that is used for requests.
New in version 1.0.
- get_categories_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get the store categories. See
Snapd.Client.get_categories_sync() for more information.New in version 1.64.
- get_categories_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.CategoryDetailsorNoneon error.- Return type:
Complete request started with
Snapd.Client.get_categories_async(). SeeSnapd.Client.get_categories_sync() for more information.New in version 1.64.
- get_categories_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
an array of
Snapd.CategoryDetailsorNoneon error.- Return type:
Get the store categories.
New in version 1.64.
- get_change_async(id, cancellable, callback, *user_data)¶
- Parameters:
id (
str) – a change ID to get information on.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get information on a change. See
Snapd.Client.get_change_sync() for more information.New in version 1.29.
- get_change_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
Snapd.ChangeorNoneon error.- Return type:
Complete request started with
Snapd.Client.get_change_async(). SeeSnapd.Client.get_change_sync() for more information.New in version 1.29.
- get_change_sync(id, cancellable)¶
- Parameters:
id (
str) – a change ID to get information on.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
Snapd.ChangeorNoneon error.- Return type:
Get information on a change.
New in version 1.29.
- get_changes_async(filter, snap_name, cancellable, callback, *user_data)¶
- Parameters:
filter (
Snapd.ChangeFilter) – changes to filter on.snap_name (
strorNone) – name of snap to filter on orNonefor changes for any snap.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get changes that have occurred / are occurring on the snap daemon. See
Snapd.Client.get_changes_sync() for more information.New in version 1.29.
- get_changes_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.ChangeorNoneon error.- Return type:
Complete request started with
Snapd.Client.get_changes_async(). SeeSnapd.Client.get_changes_sync() for more information.New in version 1.29.
- get_changes_sync(filter, snap_name, cancellable)¶
- Parameters:
filter (
Snapd.ChangeFilter) – changes to filter on.snap_name (
strorNone) – name of snap to filter on orNonefor changes for any snap.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
an array of
Snapd.ChangeorNoneon error.- Return type:
Get changes that have occurred / are occurring on the snap daemon.
New in version 1.29.
- get_connections2_async(flags, snap, interface, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.GetConnectionsFlags) – a set ofSnapd.GetConnectionsFlagsto control what results are returned.snap (
strorNone) – the name of the snap to get connections for orNonefor all snaps.interface (
strorNone) – the name of the interface to get connections for orNonefor all interfaces.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get the installed snap connections. See
Snapd.Client.get_connections_sync() for more information.New in version 1.49.
- get_connections2_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
Trueon success orFalseon error.- established:
the location to store the array of connections or
None.- undesired:
the location to store the array of auto-connected connections that have been manually disconnected or
None.- plugs:
the location to store the array of
Snapd.PlugorNone.- slots:
the location to store the array of
Snapd.SlotorNone.
- Return type:
(
bool, established: [Snapd.Connection], undesired: [Snapd.Connection], plugs: [Snapd.Plug], slots: [Snapd.Slot])
Complete request started with
Snapd.Client.get_connections_async(). SeeSnapd.Client.get_connections_sync() for more information.New in version 1.49.
- get_connections2_sync(flags, snap, interface, cancellable)¶
- Parameters:
flags (
Snapd.GetConnectionsFlags) – a set ofSnapd.GetConnectionsFlagsto control what results are returned.snap (
strorNone) – the name of the snap to get connections for orNonefor all snaps.interface (
strorNone) – the name of the interface to get connections for orNonefor all interfaces.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
Trueon success orFalseon error.- established:
the location to store the array of connections or
None.- undesired:
the location to store the array of auto-connected connections that have been manually disconnected or
None.- plugs:
the location to store the array of
Snapd.PlugorNone.- slots:
the location to store the array of
Snapd.SlotorNone.
- Return type:
(
bool, established: [Snapd.Connection], undesired: [Snapd.Connection], plugs: [Snapd.Plug], slots: [Snapd.Slot])
Get the installed snap connections.
New in version 1.49.
- get_connections_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get the installed snap connections. See
Snapd.Client.get_connections_sync() for more information.New in version 1.48.
Deprecated since version 1.49: Use
Snapd.Client.get_connections2_async()
- get_connections_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
Trueon success orFalseon error.- established:
the location to store the array of connections or
None.- undesired:
the location to store the array of auto-connected connections that have been manually disconnected or
None.- plugs:
the location to store the array of
Snapd.PlugorNone.- slots:
the location to store the array of
Snapd.SlotorNone.
- Return type:
(
bool, established: [Snapd.Connection], undesired: [Snapd.Connection], plugs: [Snapd.Plug], slots: [Snapd.Slot])
Complete request started with
Snapd.Client.get_connections_async(). SeeSnapd.Client.get_connections_sync() for more information.New in version 1.48.
Deprecated since version 1.49: Use
Snapd.Client.get_connections2_finish()
- get_connections_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
Trueon success orFalseon error.- established:
the location to store the array of connections or
None.- undesired:
the location to store the array of auto-connected connections that have been manually disconnected or
None.- plugs:
the location to store the array of
Snapd.PlugorNone.- slots:
the location to store the array of
Snapd.SlotorNone.
- Return type:
(
bool, established: [Snapd.Connection], undesired: [Snapd.Connection], plugs: [Snapd.Plug], slots: [Snapd.Slot])
Get the installed snap connections.
New in version 1.48.
Deprecated since version 1.49: Use
Snapd.Client.get_connections2_sync()
- get_icon_async(name, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to get icon for.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get the icon for an installed snap. See
Snapd.Client.get_icon_sync() for more information.New in version 1.0.
- get_icon_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
Snapd.IconorNoneon error.- Return type:
Complete request started with
Snapd.Client.get_icon_async(). SeeSnapd.Client.get_icon_sync() for more information.New in version 1.0.
- get_icon_sync(name, cancellable)¶
- Parameters:
name (
str) – name of snap to get icon for.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
Snapd.IconorNoneon error.- Return type:
Get the icon for an installed snap.
New in version 1.0.
- get_interfaces2_async(flags, names, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.GetInterfacesFlags) – a set ofSnapd.GetInterfacesFlagsto control what information is returned about the interfaces.names ([
str] orNone) – a null-terminated array of interface names orNone.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get the installed snap interfaces. See
Snapd.Client.get_interfaces2_sync() for more information.New in version 1.48.
- get_interfaces2_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.InterfaceorNoneon error.- Return type:
Complete request started with
Snapd.Client.get_interfaces2_async(). SeeSnapd.Client.get_interfaces2_sync() for more information.New in version 1.48.
- get_interfaces2_sync(flags, names, cancellable)¶
- Parameters:
flags (
Snapd.GetInterfacesFlags) – a set ofSnapd.GetInterfacesFlagsto control what information is returned about the interfaces.names ([
str] orNone) – a null-terminated array of interface names orNone.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
the available interfaces.
- Return type:
Get information about the available snap interfaces.
New in version 1.48.
- get_interfaces_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get the installed snap interfaces. See
Snapd.Client.get_interfaces_sync() for more information.New in version 1.0.
Deprecated since version 1.48: Use
Snapd.Client.get_connections2_async()
- get_interfaces_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
Trueon success orFalseon error.- plugs:
the location to store the array of
Snapd.PlugorNone.- slots:
the location to store the array of
Snapd.SlotorNone.
- Return type:
(
bool, plugs: [Snapd.Plug], slots: [Snapd.Slot])
Complete request started with
Snapd.Client.get_interfaces_async(). SeeSnapd.Client.get_interfaces_sync() for more information.New in version 1.0.
Deprecated since version 1.48: Use
Snapd.Client.get_connections2_finish()
- get_interfaces_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
Trueon success orFalseon error.- plugs:
the location to store the array of
Snapd.PlugorNone.- slots:
the location to store the array of
Snapd.SlotorNone.
- Return type:
(
bool, plugs: [Snapd.Plug], slots: [Snapd.Slot])
Get the installed snap interfaces.
New in version 1.0.
Deprecated since version 1.48: Use
Snapd.Client.get_connections_sync()
- get_logs_async(names, n, cancellable, callback, *user_data)¶
- Parameters:
names ([
str] orNone) – a null-terminated array of service names orNone.n (
int) – the number of logs to return or 0 for default.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get logs for snap services. See
Snapd.Client.get_logs_sync() for more information.New in version 1.64.
- get_logs_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.get_logs_async(). SeeSnapd.Client.get_logs_sync() for more information.New in version 1.64.
- get_logs_sync(names, n, cancellable)¶
- Parameters:
names ([
str] orNone) – a null-terminated array of service names orNone.n (
int) – the number of logs to return or 0 for default.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Get logs for snap services.
New in version 1.64.
- get_maintenance()¶
- Returns:
a
Snapd.MaintenanceorNone.- Return type:
Get the maintenance information reported by snapd or
Noneif no maintenance is in progress. This information is updated after every request.New in version 1.45.
- get_notices_async(since_date_time, timeout, cancellable, callback, *user_data)¶
- Parameters:
since_date_time (
GLib.DateTime) – send only the notices generated after this moment (Nonefor all).timeout (
int) – time, in microseconds, to wait for a new notice (zero to return immediately).cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get notifications that have occurred / are occurring on the snap daemon.
The since_date_time field, being a
GLib.DateTime, has a resolution of microseconds, so, if nanosecond resolution is needed, it is mandatory to callSnapd.Client.notices_set_after_noticebefore calling this method.New in version 1.65.
- get_notices_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
GLib.PtrArrayobject containing the requested notices, orNonein case of error.- Return type:
Complete request started with
Snapd.Client.get_notices_async().New in version 1.65.
- get_notices_sync(since_date_time, timeout, cancellable)¶
- Parameters:
since_date_time (
GLib.DateTime) – send only the notices generated after this moment (Nonefor all).timeout (
int) – time, in microseconds, to wait for a new notice (zero to return immediately).cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
GLib.PtrArrayobject containing the requested notices, orNonein case of error.- Return type:
Synchronously get notifications that have occurred / are occurring on the snap daemon.
The since_date_time field, being a
GLib.DateTime, has a resolution of microseconds, so, if nanosecond resolution is needed, it is mandatory to callSnapd.Client.notices_set_after_noticebefore calling this method.New in version 1.65.
- get_notices_with_filters_async(user_id, users, types, keys, since_date_time, timeout, cancellable, callback, *user_data)¶
- Parameters:
user_id (
str) – filter by this user-id (Nonefor no filter).users (
str) – filter by this comma-separated list of users (Nonefor no filter).types (
str) – filter by this comma-separated list of types (Nonefor no filter).keys (
str) – filter by this comma-separated list of keys (Nonefor no filter).since_date_time (
GLib.DateTime) – send only the notices generated after this moment (Nonefor all).timeout (
int) – time, in microseconds, to wait for a new notice (zero to return immediately).cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get notifications that have occurred / are occurring on the snap daemon, allowing to filter the results with several options.
The since_date_time field, being a
GLib.DateTime, has a resolution of microseconds, so, if nanosecond resolution is needed, it is mandatory to callSnapd.Client.notices_set_after_noticebefore calling this method.New in version 1.65.
- get_notices_with_filters_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
GLib.PtrArrayobject containing the requested notices, orNonein case of error.- Return type:
Complete request started with
Snapd.Client.get_notices_with_filters_async().New in version 1.65.
- get_notices_with_filters_sync(user_id, users, types, keys, since_date_time, timeout, cancellable)¶
- Parameters:
user_id (
str) – filter by this user-id (Nonefor no filter).users (
str) – filter by this comma-separated list of users (Nonefor no filter).types (
str) – filter by this comma-separated list of types (Nonefor no filter).keys (
str) – filter by this comma-separated list of keys (Nonefor no filter).since_date_time (
GLib.DateTime) – send only the notices generated after this moment (Nonefor all).timeout (
int) – time, in microseconds, to wait for a new notice (zero to return immediately).cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
GLib.PtrArrayobject containing the requested notices, orNonein case of error.- Return type:
Synchronously get notifications that have occurred / are occurring on the snap daemon, allowing to filter the results with several options.
The since_date_time field, being a
GLib.DateTime, has a resolution of microseconds, so, if nanosecond resolution is needed, it is mandatory to callSnapd.Client.notices_set_after_noticebefore calling this method.New in version 1.65.
- get_sections_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get the store sections. See
Snapd.Client.get_sections_sync() for more information.New in version 1.7.
Deprecated since version 1.64: Use
Snapd.Client.get_categories_async()
- get_sections_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of section names or
Noneon error.- Return type:
[
str]
Complete request started with
Snapd.Client.get_sections_async(). SeeSnapd.Client.get_sections_sync() for more information.New in version 1.7.
Deprecated since version 1.64: Use
Snapd.Client.get_categories_finish()
- get_sections_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
an array of section names or
Noneon error.- Return type:
[
str]
Get the store sections.
New in version 1.7.
Deprecated since version 1.64: Use
Snapd.Client.get_categories_sync()
- get_snap_async(name, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to get.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get information of a single installed snap. See
Snapd.Client.get_snap_sync() for more information.New in version 1.42.
- get_snap_conf_async(name, keys, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to get configuration from.keys ([
str] orNone) – keys to returns orNoneto return all.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get configuration for a snap. See
Snapd.Client.get_snap_conf_sync() for more information.New in version 1.48.
- get_snap_conf_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a table of configuration values or
Noneon error.- Return type:
{
str:GLib.Variant}
Complete request started with
Snapd.Client.get_snap_conf_async(). SeeSnapd.Client.get_snap_conf_sync() for more information.New in version 1.48.
- get_snap_conf_sync(name, keys, cancellable)¶
- Parameters:
name (
str) – name of snap to get configuration from.keys ([
str] orNone) – keys to returns orNoneto return all.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a table of configuration values or
Noneon error.- Return type:
{
str:GLib.Variant}
Get configuration for a snap. System configuration is stored using the name “system”.
New in version 1.48.
- get_snap_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
Snapd.SnaporNoneon error.- Return type:
Complete request started with
Snapd.Client.get_snap_async(). SeeSnapd.Client.get_snap_sync() for more information.New in version 1.42.
- get_snap_sync(name, cancellable)¶
- Parameters:
name (
str) – name of snap to get.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
Snapd.SnaporNoneon error.- Return type:
Get information of a single installed snap. If the snap does not exist an error occurs.
New in version 1.42.
- get_snaps_async(flags, names, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.GetSnapsFlags) – a set ofSnapd.GetSnapsFlagsto control what results are returned.names ([
str] orNone) – A list of snap names to return results for. IfNoneor empty then all installed snaps are returned.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get information on installed snaps. See
Snapd.Client.get_snaps_sync() for more information.When settings the flags variable, only one of
Snapd.GetSnapsFlags.INCLUDE_INACTIVEandSnapd.GetSnapsFlags.REFRESH_INHIBITEDcan be set. Setting both results in an error.New in version 1.42.
- get_snaps_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- Return type:
Complete request started with
Snapd.Client.get_snaps_async(). SeeSnapd.Client.get_snaps_sync() for more information.New in version 1.42.
- get_snaps_sync(flags, names, cancellable)¶
- Parameters:
flags (
Snapd.GetSnapsFlags) – a set ofSnapd.GetSnapsFlagsto control what results are returned.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- Return type:
Get information on installed snaps (snaps with status
Snapd.SnapStatus.ACTIVE). If flags containsSnapd.GetSnapsFlags.INCLUDE_INACTIVEthen also return snaps with statusSnapd.SnapStatus.INSTALLED.If flags contains
Snapd.GetSnapsFlags.REFRESH_INHIBITED, then it will return only those snaps that are inhibited from being refreshed, for example due to having a running instace.If names is not
Noneand contains at least one name only snaps that match these names are returned. If a snap is not installed it is not returned (no error is generated).New in version 1.42.
- get_socket_path()¶
- Returns:
socket path.
- Return type:
Get the unix socket path to connect to snapd with.
New in version 1.24.
- get_system_information_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Request system information asynchronously from snapd. See
Snapd.Client.get_system_information_sync() for more information.New in version 1.0.
- get_system_information_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
Snapd.SystemInformationorNoneon error.- Return type:
Complete request started with
Snapd.Client.get_system_information_async(). SeeSnapd.Client.get_system_information_sync() for more information.New in version 1.0.
- get_system_information_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
a
Snapd.SystemInformationorNoneon error.- Return type:
Request system information from snapd. While this blocks, snapd is expected to return the information quickly.
New in version 1.0.
- get_user_agent()¶
-
Get the HTTP user-agent that is sent with each request to snapd.
New in version 1.16.
- get_users_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get user accounts that are valid for this device. See
Snapd.Client.get_users_sync() for more information.New in version 1.26.
- get_users_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.UserInformationorNoneon error.- Return type:
Complete request started with
Snapd.Client.get_users_async(). SeeSnapd.Client.get_users_sync() for more information.New in version 1.26.
- get_users_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
an array of
Snapd.UserInformationorNoneon error.- Return type:
Get user accounts that are valid for this device.
New in version 1.26.
- install2_async(flags, name, channel, revision, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.InstallFlags) – a set ofSnapd.InstallFlagsto control install options.name (
str) – name of snap to install.channel (
strorNone) – channel to install from orNonefor default.revision (
strorNone) – revision to install orNonefor default.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously install a snap from the store. See
Snapd.Client.install2_sync() for more information.New in version 1.12.
- install2_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.install2_async(). SeeSnapd.Client.install2_sync() for more information.New in version 1.12.
- install2_sync(flags, name, channel, revision, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
flags (
Snapd.InstallFlags) – a set ofSnapd.InstallFlagsto control install options.name (
str) – name of snap to install.channel (
strorNone) – channel to install from orNonefor default.revision (
strorNone) – revision to install orNonefor default.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Install a snap from the store.
New in version 1.12.
- install_async(name, channel, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to install.channel (
strorNone) – channel to install from orNonefor default.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously install a snap from the store. See
Snapd.Client.install_sync() for more information.New in version 1.0.
Deprecated since version 1.12: Use
Snapd.Client.install2_async()
- install_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.install_async(). SeeSnapd.Client.install_sync() for more information.New in version 1.0.
Deprecated since version 1.12: Use
Snapd.Client.install2_finish()
- install_stream_async(flags, stream, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.InstallFlags) – a set ofSnapd.InstallFlagsto control install options.stream (
Gio.InputStream) – aGio.InputStreamcontaining the snap file contents to install.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously install a snap. See
Snapd.Client.install_stream_sync() for more information.New in version 1.9.
- install_stream_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.install_stream_async(). SeeSnapd.Client.install_stream_sync() for more information.New in version 1.9.
- install_stream_sync(flags, stream, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
flags (
Snapd.InstallFlags) – a set ofSnapd.InstallFlagsto control install options.stream (
Gio.InputStream) – aGio.InputStreamcontaining the snap file contents to install.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Install a snap. The snap contents are provided in the form of an input stream. To install from a local file, do the following:
g_autoptr(GFile) file = g_file_new_for_path (path_to_snap_file); g_autoptr(GInputStream) stream = g_file_read (file, cancellable, &error); snapd_client_install_stream_sync (self, stream, progress_cb, NULL, cancellable, &error); \] Or if you have the file in memory you can use: |[ g_autoptr(GInputStream) stream = g_memory_input_stream_new_from_data (data, data_length, free_data); snapd_client_install_stream_sync (self, stream, progress_cb, NULL, cancellable, &error); \]
New in version 1.9.
- install_sync(name, channel, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
name (
str) – name of snap to install.channel (
strorNone) – channel to install from orNonefor default.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Install a snap from the store.
New in version 1.0.
Deprecated since version 1.12: Use
Snapd.Client.install2_sync()
- install_themes_async(gtk_theme_names, icon_theme_names, sound_theme_names, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
gtk_theme_names ([
str] orNone) – a list of GTK theme names.icon_theme_names ([
str] orNone) – a list of icon theme names.sound_theme_names ([
str] orNone) – a list of sound theme names.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously install snaps that provide the requested desktop themes. See
Snapd.Client.install_themes_sync() for more information.New in version 1.60.
- install_themes_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
Trueon success.- Return type:
Complete request started with
Snapd.Client.install_themes_async(). SeeSnapd.Client.install_themes_sync() for more information.New in version 1.60.
- install_themes_sync(gtk_theme_names, icon_theme_names, sound_theme_names, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
gtk_theme_names ([
str] orNone) – a list of GTK theme names.icon_theme_names ([
str] orNone) – a list of icon theme names.sound_theme_names ([
str] orNone) – a list of sound theme names.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Return type:
Install snaps that provide the named desktop themes. If all the named themes are in the “installed” or “unavailable” states, then an error will be returned.
New in version 1.60.
- list_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get information on all installed snaps. See
Snapd.Client.list_sync() for more information.New in version 1.0.
Deprecated since version 1.42: Use
Snapd.Client.get_snaps_async()
- list_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- Return type:
Complete request started with
Snapd.Client.list_async(). SeeSnapd.Client.list_sync() for more information.New in version 1.0.
Deprecated since version 1.42: Use
Snapd.Client.get_snaps_finish()
- list_one_async(name, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to get.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get information of a single installed snap. See
Snapd.Client.list_one_sync() for more information.New in version 1.0.
Deprecated since version 1.42: Use
Snapd.Client.get_snap_async()
- list_one_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
Snapd.SnaporNoneon error.- Return type:
Complete request started with
Snapd.Client.list_one_async(). SeeSnapd.Client.list_one_sync() for more information.New in version 1.0.
Deprecated since version 1.42: Use
Snapd.Client.get_snap_finish()
- list_one_sync(name, cancellable)¶
- Parameters:
name (
str) – name of snap to get.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
Snapd.SnaporNoneon error.- Return type:
Get information of a single installed snap.
New in version 1.0.
Deprecated since version 1.42: Use
Snapd.Client.get_snap_sync()
- list_sync(cancellable)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.- Raises:
- Returns:
an array of
Snapd.SnaporNoneon error.- Return type:
Get information on all installed snaps.
New in version 1.0.
Deprecated since version 1.42: Use
Snapd.Client.get_snaps_sync()
- login2_async(email, password, otp, cancellable, callback, *user_data)¶
- Parameters:
email (
str) – email address to log in with.password (
str) – password to log in with.otp (
strorNone) – response to one-time password challenge.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get authorization to install/remove snaps. See
Snapd.Client.login2_sync() for more information.New in version 1.26.
- login2_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
Snapd.UserInformationorNoneon error.- Return type:
Complete request started with
Snapd.Client.login2_async(). SeeSnapd.Client.login2_sync() for more information.New in version 1.26.
- login2_sync(email, password, otp, cancellable)¶
- Parameters:
email (
str) – email address to log in with.password (
str) – password to log in with.otp (
strorNone) – response to one-time password challenge.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
Snapd.UserInformationorNoneon error.- Return type:
Log in to snapd and get authorization to install/remove snaps.
New in version 1.26.
- login_async(email, password, otp, cancellable, callback, *user_data)¶
- Parameters:
email (
str) – email address to log in with.password (
str) – password to log in with.otp (
strorNone) – response to one-time password challenge.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously get authorization to install/remove snaps. See
Snapd.Client.login_sync() for more information.New in version 1.0.
Deprecated since version 1.26: Use
Snapd.Client.login2_async()
- login_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
Snapd.AuthDataorNoneon error.- Return type:
Complete request started with
Snapd.Client.login_async(). SeeSnapd.Client.login_sync() for more information.New in version 1.0.
Deprecated since version 1.26: Use
Snapd.Client.login2_finish()
- login_sync(email, password, otp, cancellable)¶
- Parameters:
email (
str) – email address to log in with.password (
str) – password to log in with.otp (
strorNone) – response to one-time password challenge.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
Snapd.AuthDataorNoneon error.- Return type:
Log in to snapd and get authorization to install/remove snaps.
New in version 1.0.
Deprecated since version 1.26: Use
Snapd.Client.login2_sync()
- logout_async(id, cancellable, callback, *user_data)¶
- Parameters:
id (
int) – login ID to use.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously log out from the snap store. See
Snapd.Client.logout_sync() for more information.New in version 1.55.
- logout_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.logout_async(). SeeSnapd.Client.logout_sync() for more information.New in version 1.55.
- logout_sync(id, cancellable)¶
- Parameters:
id (
int) – login ID to use.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Log out from snapd.
New in version 1.55.
- notices_set_after_notice(notice)¶
- Parameters:
notice (
Snapd.Notice) – the lastSnapd.Noticereceived, to get all the notices after it.
Allows to set the “since” parameter with nanosecond accuracy when doing a call to get the notices. This is currently needed because
GLib.DateTimehas only an accuracy of 1 microsecond, but to receive notice events correctly, without loosing any of them, an accuracy of 1 nanosecond is needed in the value passed on in the since_date_time parameter.The value is “reset” after any call to snapd_client_get_notices_*(), so it must be set again always before doing any of those calls.
Passing
Nonewill reset the value too, in which case the mili- and micro-seconds defined in the since_date_time parameter will be used.New in version 1.66.
- notices_set_since_nanoseconds(nanoseconds)¶
- Parameters:
nanoseconds (
int) – the nanoseconds value to use to combine with the #since_date_time property to filter notices after it
Allows to set the “since” parameter with nanosecond accuracy when doing a call to get the notices. This is currently needed because
GLib.DateTimehas only an accuracy of 1 microsecond, but to receive notice events correctly, without loosing any, it is needed 1 nanosecond accuracy in the value passed on in the since_date_time parameter.The value is “reseted” after any call to snapd_client_get_notices_*(), so it must be set always before doing any of those calls.
Passing
Nonewill reset the value too, in which case the mili- and micro-seconds defined in the since_date_time parameter will be used.New in version 1.66.
- prefer_async(snap, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
snap (
str) – the name of the snap to modify.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously ???. See
Snapd.Client.prefer_sync() for more information.New in version 1.25.
- prefer_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.prefer_async(). SeeSnapd.Client.prefer_sync() for more information.New in version 1.25.
- prefer_sync(snap, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
snap (
str) – the name of the snap to modify.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Return type:
???
New in version 1.25.
- refresh_all_async(progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously ensure all snaps are updated to their latest versions. See
Snapd.Client.refresh_all_sync() for more information.New in version 1.5.
- refresh_all_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
a
None-terminated array of the snap names refreshed orNoneon error.- Return type:
[
str]
Complete request started with
Snapd.Client.refresh_all_async(). SeeSnapd.Client.refresh_all_sync() for more information.New in version 1.5.
- refresh_all_sync(progress_callback, progress_callback_data, cancellable)¶
- Parameters:
progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
a
None-terminated array of the snap names refreshed orNoneon error.- Return type:
[
str]
Update all installed snaps to their latest version.
New in version 1.5.
- refresh_async(name, channel, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to refresh.channel (
strorNone) – channel to refresh from orNonefor default.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously ensure an installed snap is at the latest version. See
Snapd.Client.refresh_sync() for more information.New in version 1.0.
- refresh_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.refresh_async(). SeeSnapd.Client.refresh_sync() for more information.New in version 1.0.
- refresh_sync(name, channel, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
name (
str) – name of snap to refresh.channel (
strorNone) – channel to refresh from orNonefor default.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Ensure an installed snap is at the latest version.
New in version 1.0.
- remove2_async(flags, name, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
flags (
Snapd.RemoveFlags) – a set ofSnapd.RemoveFlagsto control remove options.name (
str) – name of snap to remove.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously uninstall a snap. See
Snapd.Client.remove2_sync() for more information.New in version 1.50.
- remove2_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.remove2_async(). SeeSnapd.Client.remove2_sync() for more information.New in version 1.50.
- remove2_sync(flags, name, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
flags (
Snapd.RemoveFlags) – a set ofSnapd.RemoveFlagsto control remove options.name (
str) – name of snap to remove.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Uninstall a snap.
New in version 1.50.
- remove_async(name, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to remove.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously uninstall a snap. See
Snapd.Client.remove_sync() for more information.New in version 1.0.
- remove_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.remove_async(). SeeSnapd.Client.remove_sync() for more information.New in version 1.0.
- remove_sync(name, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
name (
str) – name of snap to remove.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Uninstall a snap.
New in version 1.0.
Deprecated since version 1.50: Use
Snapd.Client.remove2_sync()
- reset_aliases_async(snap, aliases, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
snap (
str) – the name of the snap to modify.aliases ([
str]) – the aliases to modify.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously change the state of aliases. See
Snapd.Client.reset_aliases_sync() for more information.New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Client.disable_aliases_async()
- reset_aliases_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.reset_aliases_async(). SeeSnapd.Client.reset_aliases_sync() for more information.New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Client.disable_aliases_finish()
- reset_aliases_sync(snap, aliases, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
snap (
str) – the name of the snap to modify.aliases ([
str]) – the aliases to modify.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Change the state of aliases.
New in version 1.8.
Deprecated since version 1.25: Use
Snapd.Client.disable_aliases_sync()
- run_snapctl2_async(context_id, args, cancellable, callback, *user_data)¶
- Parameters:
context_id (
str) – context for this call.args ([
str]) – the arguments to pass to snapctl.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously run a snapctl command. See
Snapd.Client.run_snapctl_sync() for more information.New in version 1.59.
- run_snapctl2_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
(
bool, stdout_output:str, stderr_output:str, exit_code:int)
Complete request started with
Snapd.Client.run_snapctl2_async(). SeeSnapd.Client.run_snapctl2_sync() for more information.New in version 1.59.
- run_snapctl2_sync(context_id, args, cancellable)¶
- Parameters:
context_id (
str) – context for this call.args ([
str]) – the arguments to pass to snapctl.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
(
bool, stdout_output:str, stderr_output:str, exit_code:int)
Run a snapctl command.
New in version 1.59.
- run_snapctl_async(context_id, args, cancellable, callback, *user_data)¶
- Parameters:
context_id (
str) – context for this call.args ([
str]) – the arguments to pass to snapctl.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously run a snapctl command. See
Snapd.Client.run_snapctl_sync() for more information.New in version 1.8.
Deprecated since version 1.59: Use
Snapd.Client.run_snapctl2_async()
- run_snapctl_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.run_snapctl_async(). SeeSnapd.Client.run_snapctl_sync() for more information.New in version 1.8.
Deprecated since version 1.59: Use
Snapd.Client.run_snapctl2_finish()
- run_snapctl_sync(context_id, args, cancellable)¶
- Parameters:
context_id (
str) – context for this call.args ([
str]) – the arguments to pass to snapctl.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Run a snapctl command.
New in version 1.8.
Deprecated since version 1.59: Use
Snapd.Client.run_snapctl2_async()
- set_allow_interaction(allow_interaction)¶
- Parameters:
allow_interaction (
bool) – whether to allow interaction.
Set whether snapd operations are allowed to interact with the user. This affects operations that use polkit authorisation. Defaults to
True.New in version 1.19.
- set_auth_data(auth_data)¶
- Parameters:
auth_data (
Snapd.AuthDataorNone) – aSnapd.AuthDataorNone.
Set the authorization data to use for requests. Authorization data can be obtained by:
Logging into snapd using
Snapd.Client.login_sync()Using an existing authorization with
Snapd.AuthData.new().
New in version 1.0.
- set_snap_conf_async(name, key_values, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to set configuration for.key_values ({
str:GLib.Variant}) – Keys to set.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously set configuration for a snap. See
Snapd.Client.set_snap_conf_sync() for more information.New in version 1.48.
- set_snap_conf_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
Trueif configuration successfully applied.- Return type:
Complete request started with
Snapd.Client.set_snap_conf_async(). SeeSnapd.Client.set_snap_conf_sync() for more information.New in version 1.48.
- set_snap_conf_sync(name, key_values, cancellable)¶
- Parameters:
name (
str) – name of snap to set configuration for.key_values ({
str:GLib.Variant}) – Keys to set.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
Trueif configuration successfully applied.- Return type:
Set configuration for a snap. System configuration is stored using the name “system”.
New in version 1.48.
- set_socket_path(socket_path)¶
-
Set the Unix socket path to connect to snapd with. Defaults to the system socket.
New in version 1.24.
- set_user_agent(user_agent)¶
-
Set the HTTP user-agent that is sent with each request to snapd. Defaults to “snapd-glib/VERSION”.
New in version 1.16.
- switch_async(name, channel, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
name (
str) – name of snap to switch channel.channel (
str) – channel to track.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously set the tracking channel on an installed snap. See
Snapd.Client.switch_sync() for more information.New in version 1.26.
- switch_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.switch_async(). SeeSnapd.Client.switch_sync() for more information.New in version 1.26.
- switch_sync(name, channel, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
name (
str) – name of snap to switch channel.channel (
str) – channel to track.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Set the tracking channel on an installed snap.
New in version 1.26.
- try_async(path, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
path (
str) – path to snap directory to try.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously try a snap. See
Snapd.Client.try_sync() for more information.New in version 1.9.
- try_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.try_async(). SeeSnapd.Client.try_sync() for more information.New in version 1.9.
- try_sync(path, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
path (
str) – path to snap directory to try.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Returns:
- Return type:
Try a snap.
New in version 1.9.
- unalias_async(snap, alias, progress_callback, progress_callback_data, cancellable, callback, *user_data)¶
- Parameters:
snap (
strorNone) – the name of the snap to modify orNone.alias (
strorNone) – the name of the alias to remove orNoneto remove all aliases for the given snap.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the request is satisfied.user_data (
objectorNone) – the data to pass to callback function.
Asynchronously remove an alias from an app. See
Snapd.Client.unalias_sync() for more information.New in version 1.25.
- unalias_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
- Return type:
Complete request started with
Snapd.Client.unalias_async(). SeeSnapd.Client.unalias_sync() for more information.New in version 1.25.
- unalias_sync(snap, alias, progress_callback, progress_callback_data, cancellable)¶
- Parameters:
snap (
strorNone) – the name of the snap to modify orNone.alias (
strorNone) – the name of the alias to remove orNoneto remove all aliases for the given snap.progress_callback (
Snapd.ProgressCallbackorNone) – function to callback with progress.progress_callback_data (
objectorNone) – user data to pass to progress_callback.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.
- Raises:
- Return type:
Remove an alias from an app.
New in version 1.25.