After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 688331 - Extensions don't reactivate after lock-screen
Extensions don't reactivate after lock-screen
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-11-14 16:53 UTC by Enno Weichert
Modified: 2013-11-25 07:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Before lock screen is active (10.97 KB, image/png)
2013-10-24 16:31 UTC, Dominik Grafenhofer
  Details
After the lock screen was active (10.07 KB, image/png)
2013-10-24 16:32 UTC, Dominik Grafenhofer
  Details
catch more errors on extensions enable() and disable() (1.15 KB, patch)
2013-10-25 13:31 UTC, sébastien lafargue
reviewed Details | Review
patch v2 (3.95 KB, patch)
2013-10-25 21:23 UTC, sébastien lafargue
committed Details | Review

Description Enno Weichert 2012-11-14 16:53:39 UTC
Whenever I lock the screen the extensions stay deactivated.
I cannot reactivate them through the web interface or the Tweak Tool.

Trying to update (thus re-install) one of them actually removed it. Although that issue might me unrelated.

Here is a list of the extensions I have currently installed:

alternative-status-menu@sam.sambull.org
disable-window-animations@github.com
maximus@mathematical.coffee.gmail.com
nohotcorner@azuri.free.fr
removeaccesibility@lomegor
window_buttons@biox.github.com
window-options@mathematical.coffee.gmail.com
windowsNavigator@gnome-shell-extensions.gcampax.github.com
Comment 1 Dominik Grafenhofer 2013-10-24 16:31:36 UTC
Created attachment 258037 [details]
Before lock screen is active
Comment 2 Dominik Grafenhofer 2013-10-24 16:32:19 UTC
I have the very same problem on gnome 3.10.0 and 3.10.1 (under Fedora F-20
alpha). Restarting gnome-shell (ALT+F2 then r) makes the extensions reappear.
However only a few extentions are affected, e.g. Places Status Indicator,
Messaging Menu,.. The weather extension is unaffected. See screenshots.
Comment 3 Dominik Grafenhofer 2013-10-24 16:32:46 UTC
Created attachment 258038 [details]
After the lock screen was active
Comment 4 blubberbacke 2013-10-25 02:00:06 UTC
Same on my Arch Linux with Gnome 3.10, extensions like Activities-Configurator, Places and Taskbar are gone and can be brought back by Alt-F2 -> r .
Comment 5 sébastien lafargue 2013-10-25 13:31:45 UTC
Created attachment 258117 [details] [review]
catch more errors on extensions enable() and disable()

it's due to errors on faulty extensions
Comment 6 Florian Müllner 2013-10-25 13:50:39 UTC
Review of attachment 258117 [details] [review]:

::: js/ui/extensionSystem.js
@@ +125,3 @@
+        extension.stateObj.enable();
+    } catch(e) {
+        logExtensionError(uuid, e);

Should we really mark the extension as ENABLED in this case?
Comment 7 Jasper St. Pierre (not reading bugmail) 2013-10-25 15:35:41 UTC
Review of attachment 258117 [details] [review]:

Right. logExtensionError will set the extension's state to ERROR, which means "don't touch it after".

You need to return there, and put the disabling/re-enabling of other extensions in a finally block so that it always runs.

You can also remove the logExtensionError wrappers around disableExtension / enableExtension below.
Comment 8 Jasper St. Pierre (not reading bugmail) 2013-10-25 15:35:41 UTC
Review of attachment 258117 [details] [review]:

Right. logExtensionError will set the extension's state to ERROR, which means "don't touch it after".

You need to return there, and put the disabling/re-enabling of other extensions in a finally block so that it always runs.

You can also remove the logExtensionError wrappers around disableExtension / enableExtension below.
Comment 9 sébastien lafargue 2013-10-25 21:23:39 UTC
Created attachment 258145 [details] [review]
patch v2
Comment 10 Giovanni Campagna 2013-10-26 14:34:58 UTC
Review of attachment 258145 [details] [review]:

Looks good to me.
Comment 11 Giovanni Campagna 2013-10-26 14:36:55 UTC
Pushed on slaf's behalf.