Bug#956172: gnome-tweaks: Passing an extension UUID to gnome-shell-extension-prefs is no longer supported in 3.36.1

Simon McVittie smcv at debian.org
Wed Apr 8 02:11:49 BST 2020


Package: gnome-tweaks
Version: 3.34.0-3
Severity: important
Forwarded: https://gitlab.gnome.org/GNOME/gnome-tweaks/-/issues/283
Tags: bullseye sid upstream
Control: block 954422 by -1

GNOME Shell 3.36.x (currently in experimental, but should be heading to
unstable soon) has a new gnome-shell-extension-prefs package that separates
out the extension preferences app. It's also available as a Flatpak.

gnome-tweaks used to be the place to configure extensions, so it should
probably have a Recommends on gnome-shell-extension-prefs.

The shell extensions tweak group has:

    def _on_configure_clicked(self, btn, uuid):
        execute_subprocess(['gnome-shell-extension-prefs', uuid], block=False)

which will not work since GNOME Shell 3.36.1, because the way extension
preferences work has been redone to accommodate the g-s-extension-prefs
app being installed via Flatpak or similar.

One way to solve this would be to remove the extensions support (upstream
#272, !50).

Or, if the extensions support is still desired, the new way to load an
extension's prefs seems to be a D-Bus call:

        Gio.DBus.session.call(
            'org.gnome.Shell.Extensions',
            '/org/gnome/Shell/Extensions',
            'org.gnome.Shell.Extensions',
            'OpenExtensionPrefs',
            new GLib.Variant('(ssa{sv})', [uuid, parentWindow, options]),
            null,
            Gio.DBusCallFlags.NONE,
            -1,
            null);

(That's Javascript code from GNOME Shell, but the equivalent Python code
should be fairly similar.)

    smcv



More information about the pkg-gnome-maintainers mailing list