mate-desktop / mate-screensaver

MATE screen saver and locker
https://mate-desktop.org
GNU General Public License v2.0
48 stars 40 forks source link

Set get org.mate.screensaver lock-delay to 0 by default #282

Closed davidhedlund closed 8 months ago

davidhedlund commented 1 year ago

Expected behaviour

Should lock itself when the screenssaver is turned on.

Actual behaviour

Does not lock itself when the screenssaver is turned on.

Steps to reproduce the behaviour

Open mate-screensaver-preferences (Settings > System > Preferences > Look and Feel > Screensaver)

Test 1

Test 2

MATE general version

Multiple

Package version

See https://bugs.launchpad.net/ubuntu/+source/mate-screensaver/+bug/2017879 where I first filed it.

Linux Distribution

Debian, Ubuntu, Ubuntu MATE, etc. See https://bugs.launchpad.net/ubuntu/+source/mate-screensaver/+bug/2017879 where I first filed it.

Link to bugreport of your Distribution (requirement)

https://bugs.launchpad.net/ubuntu/+source/mate-screensaver/+bug/2017879

zhuyaliang commented 8 months ago

gsettings set org.mate.screensaver lock-delay 0

    <key name="lock-delay" type="i">
      <default>0</default>
      <summary>Time before locking</summary>
      <description>The number of minutes after screensaver activation before locking the screen.</description>
    </key>
davidhedlund commented 8 months ago

gsettings set org.mate.screensaver lock-delay 0

    <key name="lock-delay" type="i">
      <default>0</default>
      <summary>Time before locking</summary>
      <description>The number of minutes after screensaver activation before locking the screen.</description>
    </key>

Thank you very much. That's why the delay is 60 seconds for me:

gsettings get org.mate.screensaver lock-delay
1
zhuyaliang commented 8 months ago

I guess that the lock delay should be set to 0?

The default is 0, it should be because other configurations have modified lock-delay, using grep -rin lock-delay/usr/share/glib-2.0/schemas/

Also, there's no lock delay setting for the screensaver in the GUI:

At present, lock delay can only be set through gsettings set org.date.screensave lock-delay 0

davidhedlund commented 8 months ago

I guess that the lock delay should be set to 0?

The default is 0, it should be because other configurations have modified lock-delay, using grep -rin lock-delay/usr/share/glib-2.0/schemas/

You've been very helpful!

grep -rin "lock-delay=1" /usr/share/glib-2.0/schemas/
/usr/share/glib-2.0/schemas/10_mate-common.gschema.override:92:lock-delay=1

Also, there's no lock delay setting for the screensaver in the GUI:

At present, lock delay can only be set through gsettings set org.date.screensave lock-delay 0

For security reasons, I think this should be visible in the GUI. I change the title once again to solely focus on this.

davidhedlund commented 8 months ago