Re: Best practices for using GOA



On Tue, Jun 26, 2018 at 12:17:48AM -0300, Georges Basile Stavracas Neto wrote:
Is there any chance of adding a DBus API for this?

If you mean a D-Bus API for spawning GNOME Settings, then yes, there is,
here's an example:
https://gitlab.gnome.org/GNOME/gnome-calendar/blob/master/src/gcal-source-dialog.c#L694

Thanks for that reference, Georges.

I completely forgot that Emanuele had made Settings D-Bus activatable
with the launch-panel GAction as part of his gnome-online-accounts and
browser extension work [1].  It is certainly better for applications
to use it via the D-Bus API because launching it via the command-line
won't work if the application is running in the Flatpak sandbox.

Now we need to hunt down the rest of the applications still using the
command-line launching and switch them to use D-Bus. :)

[1] https://bugzilla.gnome.org/show_bug.cgi?id=694313


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]