This is still present in Ubuntu 24.04 LTS (noble). `ubuntu/noble-updates` (gnome-shell 46.0-0ubuntu6~24.04.x) still has `return;` in `secure_mode_extension.patch`. Could this get a Noble task and an SRU? The fix is the same one-line change as 47.0-2ubuntu2.
[ Impact ] If a user has a local copy of a session-mode extension (e.g. [email protected], [email protected]) in ~/.local/share/gnome-shell/extensions, the skip branch returns undefined instead of null. That value gets past the `.filter(extension => extension !== null)` check, and `loadExtension(undefined)` throws "TypeError: extension is undefined". The shell's `_initializationPromise` stays rejected, so after the first screen lock every extension (the dock included) stays disabled until logout. Users see a "plain GNOME" desktop after locking or suspending. This is easy to hit: people copy the dock to tweak it, or older guides told them to. I hit this on Zorin OS 18 (gnome-shell 46.0-0ubuntu6~24.04.18+zorin2, built on noble). That build has the same code, so derivatives built on noble are affected too. [ Test Plan ] 1. On Ubuntu 24.04: cp -r /usr/share/gnome-shell/extensions/[email protected] ~/.local/share/gnome-shell/extensions/ 2. Log out and back in. The dock is present. `journalctl --user -b | grep "Found user extension"` shows the skip message, and the journal shows "TypeError: extension is undefined" from loadExtension. 3. Lock the screen (Super+L) and unlock. Before the fix: the dock and all other extensions are gone, and `gnome-extensions info [email protected]` shows them as not active. After the fix: no TypeError, and extensions come back after unlock. [ Where problems could occur ] Only the branch that skips per-user copies of session-mode extensions changes. Returning null makes the existing filter drop the entry, the same as every other skip path in `_loadExtensions()`. The system copy still loads as before. Any regression would show up as extension loading changes at login for users who have such a local copy. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2083615 Title: Installing a system extension (such as ubuntu dock) locally breaks the extensions loading To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2083615/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
