Public bug reported:
[ Impact ]
On Ubuntu 24.04 (noble), if a per-user copy of a mode extension exists in
~/.local/share/gnome-shell/extensions, the Ubuntu secure-mode extension
patch skips it but returns undefined instead of null.
_loadExtensions() filters its result with "extension !== null", so the
undefined entry survives and loadExtension(undefined) throws. As a result,
extensions are not re-enabled after a session mode change: after screen
lock/unlock or suspend/resume the desktop falls back to stock GNOME (no
dock/panel extensions, default theme).
This was fixed in oracular by gnome-shell 47.0-2ubuntu2
("d/p/ubuntu/secure-mode-extension: Return null on invalid extension",
LP: #2083615), but the fix never reached noble. Zorin OS 18, which is based
on noble, is affected in the field.
[ Test Plan ]
1. Copy a mode extension into the per-user extension directory, for example:
cp -a /usr/share/gnome-shell/extensions/[email protected] \
~/.local/share/gnome-shell/extensions/
On Zorin OS, any system zorin-*@zorinos.com extension reproduces it.
2. Log in, then lock and unlock the session (or suspend/resume).
3. Without the fix, journalctl --user -b shows:
TypeError: extension is undefined
loadExtension@resource:///org/gnome/shell/ui/extensionSystem.js
and extensions remain disabled.
4. With the fix, extensions are re-enabled and the panel/theme is kept.
[ Where problems could occur ]
The change only affects the early-return value for skipped per-user copies
of mode extensions. Returning null makes the existing "extension !== null"
filter drop the entry, which is the intended behaviour. No other code paths
change.
[ Other info ]
The fix is a one-line change in
debian/patches/ubuntu/secure_mode_extension.patch: return; -> return null;.
** Affects: gnome-shell (Ubuntu)
Importance: Undecided
Status: New
** Affects: gnome-shell (Ubuntu Noble)
Importance: Undecided
Status: New
** Tags: noble sru
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2178422
Title:
gnome-shell: extensions are not re-enabled after lock/unlock on noble
when a per-user mode extension exists
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2178422/+subscriptions
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs