Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable extension in lock screen #782

Open
sidt4 opened this issue Mar 16, 2023 · 13 comments
Open

Disable extension in lock screen #782

sidt4 opened this issue Mar 16, 2023 · 13 comments

Comments

@sidt4
Copy link

sidt4 commented Mar 16, 2023

Hi,

I am using the latest gnome-shell-system-monitor-applet from git in GNOME Shell 43.3.

commit 21d7b4e (HEAD -> master, origin/master, origin/HEAD)
Merge: 8f74f07 f251e72
Author: Chris Spencer chrisspen@gmail.com
Date: Sat Jan 21 21:51:46 2023 -0500

Merge pull request #773 from ZimbiX/continue-running-when-screen-is-locked-and-optionally-show-on-lockscreen
Continue running when screen is locked and optionally show on lockscreen, using session modes

But, the extension is getting displayed in the lock screen.

Is there a way to disable the extension from getting displayed in the lock screen ?

@sidt4
Copy link
Author

sidt4 commented Mar 16, 2023

I don't see any option in Preferences.

system-monitor-prefs

@ZimbiX
Copy link
Collaborator

ZimbiX commented Mar 16, 2023

Hmm, this is probably solved with #780

@ZimbiX
Copy link
Collaborator

ZimbiX commented Mar 16, 2023

How are you installing the extension? I'm having trouble with the symlink method:

JS ERROR: Extension system-monitor@paradoxxx.zero.gmail.com: ImportError: No JS module 'convenience' found in search path
@/home/brendan/.local/share/gnome-shell/extensions/system-monitor@paradoxxx.zero.gmail.com/extension.js:49:19
[...]

But it works for me using make install and Alt+F2 -> r, which is what I've always done. I use VERSION=9999 make install to prevent automatic 'updating' to the published version.

@ZimbiX
Copy link
Collaborator

ZimbiX commented Mar 16, 2023

To set the setting directly:

$ dconf write /org/gnome/shell/extensions/system-monitor/show-on-lockscreen false

@mgalgs
Copy link
Collaborator

mgalgs commented Mar 17, 2023

How are you installing the extension? I'm having trouble with the symlink method:

@ZimbiX I have it symlinked and it's working for me:

❯ pwd
/home/mgalgs/.local/share/gnome-shell/extensions
❯ ls -l system-monitor-next@paradoxxx.zero.gmail.com
lrwxrwxrwx 1 mgalgs mgalgs 90 Jan 24 10:21 system-monitor-next@paradoxxx.zero.gmail.com -> /home/mgalgs/src/gnome-shell-system-monitor-applet/system-monitor@paradoxxx.zero.gmail.com

(I had to name the symlink with the -next suffix because I'm running the -next fork and the link/directory name has to match the extension uuid)

I did also have to run some incantation or other of gnome-extensions enable. It was either gnome-extensions enable system-monitor-next@paradoxxx.zero.gmail.com or gnome-shell-extension-tool --enable-extension=system-monitor-next@paradoxxx.zero.gmail.com (I have both in my history...)

@sidt4
Copy link
Author

sidt4 commented Mar 17, 2023

But it works for me using make install and Alt+F2 -> r, which is what I've always done. I use VERSION=9999 make install to prevent automatic 'updating' to the published version.

The make install trick seems to work for me. But, if I run make install again it fails with.

cp: cannot stat 'system-monitor@paradoxxx.zero.gmail.com/schemas/gschemas.compiled': No such file or directory

And the next make install succeeds. So, subsequent make install fails / succeeds.

@sidt4
Copy link
Author

sidt4 commented Mar 17, 2023

This issue is currently blocked on #785

@sidt4
Copy link
Author

sidt4 commented Mar 17, 2023

So, I am currently back to the symlink solution, in which the extension is displayed in the lock screen, and the option is not shown in prefs. But, atleast it works fine inside the login session across logouts.

@sidt4
Copy link
Author

sidt4 commented Mar 17, 2023

And the next make install succeeds. So, subsequent make install fails / succeeds.

Tracked in #786

@mgalgs
Copy link
Collaborator

mgalgs commented Mar 17, 2023

the option is not shown in prefs

@sidt4 as mentioned by @ZimbiX above you can fix this by rebuilding your dconf schema (see the README changes in #780).

@ZimbiX
Copy link
Collaborator

ZimbiX commented Mar 17, 2023

@mgalgs How about updating the OP of #780 to include 'Resolves #782'?

@sidt4
Copy link
Author

sidt4 commented Mar 17, 2023

@sidt4 as mentioned by @ZimbiX above you can fix this by rebuilding your dconf schema (see the README changes in #780).

I am not sure if I conveyed my message here. Here is the timeline.

  1. I face Disable extension in lock screen #782
  2. So I do a make install rather than a plain symlink which is what I normally use if I am custom installing an extension.
  3. With make install, I was able to get the "show on lockscreen" option in prefs dialog.
  4. However, with make install, I faced issues Preference dialog occupies entire width of screen #784 ( cosmetic ) and 'make install' doesn't work after logout #785 ( real blocker )
  5. Since 'make install' doesn't work after logout #785 is currently blocking my work flow, I have returned to my original solution of symlink, even if it means I return to Disable extension in lock screen #782 ( where the option is not shown in pref ).
  6. I'll try the suggestion in 'make install' doesn't work after logout #785 (comment), tomorrow, since I am in a wayland session, and do not want to interrupt my current work session by logging out.

@ZimbiX
Copy link
Collaborator

ZimbiX commented Mar 17, 2023

Yeah, I got it; thanks. Bit of a rabbit hole for you! 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants