55f74bb863
Commitd76162c1c0
removed the ability to pass an extension UUID to the Extensions app, when we moved the dialog to a portal and made gnome-shell use it instead of spawning the extensions app. However that missed that many extensions called out to the app to open their own prefs. While extensions are encouraged to switch to the new openPrefs() convenience method added in commit8030d9ad32
, restore the old behavior with a small script under the old gnome-shell-extension-prefs name that either calls out to the portal or launches the app. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1220
32 lines
659 B
Bash
Executable File
32 lines
659 B
Bash
Executable File
#!/bin/sh
|
|
|
|
openPrefs() {
|
|
if [ "$(which gnome-extensions)" ]
|
|
then
|
|
gnome-extensions prefs $1
|
|
else
|
|
gdbus call --session \
|
|
--dest=org.gnome.Shell.Extensions \
|
|
--object-path=/org/gnome/Shell/Extensions \
|
|
--method=org.gnome.Shell.Extensions.OpenExtensionPrefs $1 '' '{}'
|
|
fi
|
|
}
|
|
|
|
cat >&2 <<EOT
|
|
gnome-shell-extension-prefs is deprecated
|
|
|
|
Install https://flathub.org/apps/details/org.gnome.Extensions for extension
|
|
management, or use the gnome-extensions command line tool.
|
|
|
|
Extensions can use the ExtensionUtils.openPrefs() method.
|
|
EOT
|
|
|
|
UUID=$1
|
|
|
|
if [ "$UUID" ]
|
|
then
|
|
openPrefs $UUID
|
|
else
|
|
gapplication launch org.gnome.Extensions
|
|
fi
|