gnome-shell-system-monitor-applet icon indicating copy to clipboard operation
gnome-shell-system-monitor-applet copied to clipboard

Disable extension in lock screen

Open sidt4 opened this issue 1 year ago • 13 comments

Hi,

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

commit 21d7b4e7a03ec8145b0b90c4f0b15c27d6f53788 (HEAD -> master, origin/master, origin/HEAD) Merge: 8f74f07 f251e72 Author: Chris Spencer [email protected] 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 avatar Mar 16 '23 10:03 sidt4

I don't see any option in Preferences.

system-monitor-prefs

sidt4 avatar Mar 16 '23 10:03 sidt4

Hmm, this is probably solved with https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/pull/780

ZimbiX avatar Mar 16 '23 14:03 ZimbiX

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

JS ERROR: Extension [email protected]: ImportError: No JS module 'convenience' found in search path
@/home/brendan/.local/share/gnome-shell/extensions/[email protected]/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 avatar Mar 16 '23 15:03 ZimbiX

To set the setting directly:

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

ZimbiX avatar Mar 16 '23 15:03 ZimbiX

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 [email protected]
lrwxrwxrwx 1 mgalgs mgalgs 90 Jan 24 10:21 [email protected] -> /home/mgalgs/src/gnome-shell-system-monitor-applet/[email protected]

(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 [email protected] or gnome-shell-extension-tool [email protected] (I have both in my history...)

mgalgs avatar Mar 17 '23 03:03 mgalgs

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 '[email protected]/schemas/gschemas.compiled': No such file or directory

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

sidt4 avatar Mar 17 '23 17:03 sidt4

This issue is currently blocked on https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/785

sidt4 avatar Mar 17 '23 17:03 sidt4

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 avatar Mar 17 '23 18:03 sidt4

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

Tracked in https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/786

sidt4 avatar Mar 17 '23 18:03 sidt4

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).

mgalgs avatar Mar 17 '23 18:03 mgalgs

@mgalgs How about updating the OP of https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/pull/780 to include 'Resolves https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/782'?

ZimbiX avatar Mar 17 '23 19:03 ZimbiX

@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 #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 https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/784 ( cosmetic ) and https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/785 ( real blocker )
  5. Since #785 is currently blocking my work flow, I have returned to my original solution of symlink, even if it means I return to #782 ( where the option is not shown in pref ).
  6. I'll try the suggestion in https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/785#issuecomment-1474305898, tomorrow, since I am in a wayland session, and do not want to interrupt my current work session by logging out.

sidt4 avatar Mar 17 '23 19:03 sidt4

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

ZimbiX avatar Mar 17 '23 19:03 ZimbiX