Service.setAliasToDbusPathSync

Assign a collection to this alias. Aliases help determine well known collections, such as 'default'. This method takes the dbus object path of the collection to assign to the alias.

This method may block and should not be used in user interface threads.

class Service
bool
setAliasToDbusPathSync
(
string alias_
,,
Cancellable cancellable
)

Parameters

alias_ string

the alias to assign the collection to

collectionPath string

the dbus object path of the collection to assign to the alias

cancellable Cancellable

optional cancellation object

Return Value

Type: bool

%TRUE if successful

Throws

GException on failure.

Meta