extensions-tool: Use new Extensions proxy

While sandboxing isn't a concern for the gnome-extensions command line
tool, using the Extensions proxy directly means that D-Bus methods are
called from the tool rather than gnome-shell, which allows the proxy
to auto-shutdown when done.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1106
This commit is contained in:
Florian Müllner 2020-03-21 02:32:08 +01:00 committed by Florian Müllner
parent c748b9de5c
commit fb9854c003

View File

@ -67,8 +67,8 @@ get_shell_proxy (GError **error)
return g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, return g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE, G_DBUS_PROXY_FLAGS_NONE,
NULL, NULL,
"org.gnome.Shell", "org.gnome.Shell.Extensions",
"/org/gnome/Shell", "/org/gnome/Shell/Extensions",
"org.gnome.Shell.Extensions", "org.gnome.Shell.Extensions",
NULL, NULL,
error); error);