util_activate_ui_sync


Description:


public bool util_activate_ui_sync (string action, Variant? arg) throws Error

Activate an action on a GPaste app, and wait for the call to have been made.

util_activate_ui only starts the work, finishing it from a callback the main loop dispatches; a caller with no main loop to give it -- the command line client -- would return before anything reached the bus, and exit reporting the success of having asked. This is that caller's version.

arg is taken as util_activate_ui takes it.

Parameters:

action

the action to activate

arg

the action argument

Returns:

false, with throws set, when the app could not be reached


Namespace: GPaste
Package: gpaste-3