Title: [SOLVED] Extensions (taskbar, desktop icons, menu…) disabled after suspend/lock — root cause is a user copy of a Zorin extension in ~/.local
Setup: Zorin OS 18.1, GNOME Shell 46.0-0ubuntu6~24.04.16+zorin5, Wayland, ThinkPad E16 Gen 2
Symptoms
After closing the lid (suspend) or locking the screen, all Zorin extensions stop and don't come back on unlock. The taskbar, desktop icons and Zorin Menu disappear, and you get a plain GNOME top bar. Logging out and back in, or re-enabling the extensions by hand, fixes it until the next suspend.
The journal shows:
Unhandled promise rejection ...
_sessionUpdated@resource:///org/gnome/shell/ui/extensionSystem.js:852:26
...
_prepareForSleep@resource:///org/gnome/shell/ui/screenShield.js:294:22
Resetting dconf, reinstalling the extensions and recompiling schemas do not help.
Check if this is your problem
journalctl --user -b | grep "Found user extension"
If you get something like this, this post is for you:
Found user extension zorin-desktop-icons@zorinos.com, but not loading from /home/<you>/.local/share/gnome-shell/extensions/zorin-desktop-icons@zorinos.com directory as part of session mode.
Root cause
At some point a second copy of a Zorin system extension ended up in ~/.local/share/gnome-shell/extensions/. In my case it was zorin-desktop-icons@zorinos.com; it could also have come from Extension Manager or extensions.gnome.org.
Zorin's patched extensionSystem.js is supposed to skip such user copies. The skip branch, however, returns undefined instead of null:
if ((Desktop.is('zorin') || Desktop.is('ubuntu')) && this.isModeExtension(uuid) && type === ExtensionType.PER_USER) {
log(`Found user extension ${uuid}, but not loading ...`);
return; // <-- returns undefined
}
...
}).filter(extension => extension !== null) // undefined is NOT filtered out
Here is what happens step by step:
- The
undefined entry stays in the list and is sorted to the end.
- All the real extensions load fine at login, so everything looks normal at first.
- Then
loadExtension(undefined) throws. The extension manager's initialization promise (_initializationPromise) is now permanently rejected.
- On lock or suspend, extensions are disabled as usual.
- On unlock,
_sessionUpdated() → _enableAllExtensions() awaits that rejected promise, fails immediately, and never re-enables anything.
Fix
Move the duplicate user copy out of the extensions folder. The system copy in /usr/share/gnome-shell/extensions/ stays and keeps working.
mkdir -p ~/extension-backups
mv ~/.local/share/gnome-shell/extensions/zorin-*@zorinos.com ~/extension-backups/
Then log out and log back in. Also check that folder for any other extension that Zorin ships as a system extension (x11gestures, add-to-desktop, etc.).
To verify, suspend/resume and then run:
journalctl --user -b | grep -E "Found user extension|extensionSystem.js"
It should print nothing, and the extensions should survive suspend.
If you created systemd services or scripts to re-enable extensions after resume, you can remove them now. They aren't needed.
For the Zorin team
It's a one-word fix in js/ui/extensionSystem.js (inside _loadExtensions, around line 796 in 46.0-0ubuntu6~24.04.16+zorin5): change return; to return null;. Wrapping the body of _sessionUpdated() in try/catch would also stop one bad entry from breaking extension re-enabling for the whole session.