Re: Making the panel re-appear in the lock screen after removing it from the shield



I apologize if you are already past this, but all extensions are
disabled when the screen shield is displayed. 

In screenShield.js, _resetLockScreen() will call _lockScreenShown()
which will call activateFade(). Later, _resetLockScreen() will call
Main.sessionMode.pushMode('lock-screen') which will update the mode to
lock-screen which doesn't have allowExtensions set to true and thus
disableAllExtension() gets called.

Is this your issue? It's probably possible to override enough stuff to
get it working, but I think the general idea has been that extensions
don't run on the lock screen.


On Tue, Oct 31, 2017, at 10:01 AM, Jonathan Dieter wrote:
I'm writing an extension that will basically turn the shield into a
slideshow.  Because I've disabled screen blanking, the shield is on all
the time.  I've put the following code in screenShield.js, into the
_activateFade function to disable the panel when the shield comes down,
and it works perfectly.

Main.layoutManager.removeChrome(Main.layoutManager.panelBox);

The correlating code to bring the panel back is *not* working, but does
not leave any warnings or errors:

Main.layoutManager.addChrome(Main.layoutManager.panelBox, { 
    affectsStruts: true,
    trackFullscreen: true });

I've tried putting it in _clearLockScreen and _completeLockScreen, but
the panel never re-appears.

Is there somewhere else I should put it?  Is there a better way to make
the panel disappear?

Jonathan
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list gnome org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]