mate-desktop / mate-settings-daemon

MATE settings daemon
https://mate-desktop.org
GNU General Public License v2.0
44 stars 46 forks source link

mate-settings-daemon should be compatible with light-locker #329

Open N0rbert opened 3 years ago

N0rbert commented 3 years ago

Background: some users (as from https://askubuntu.com/q/1263287/66509 ) do not want to use mate-screensaver, but want to use light-locker instead.

Expected behaviour

Actual behaviour

" Couldn't execute command: xscreensaver-command -lock Verify that this is a valid command. "

This happens because of the fact that mate-settings-daemon does not know anything about light-locker.

Steps to reproduce the behaviour

  1. Remove MATE ScreenSaver with
sudo apt-get purge mate-screensaver
sudo apt-get autoremove --purge
  1. Install LightDM based screenlocker install the corresponding package with:
sudo apt-get install light-locker
  1. Press <Ctrl>+<Alt>+<L> to test light-locker functionality

Workaround

Use some kind of hack:

cat <<EOF | sudo tee /usr/local/bin/xscreensaver-command
#!/bin/bash
light-locker-command -l
EOF
sudo chmod a+x /usr/local/bin/xscreensaver-command

to introduce the missed xscreensaver-command command.

MATE general version

1.24.0

Package version

1.24.0-1

Linux Distribution

Ubuntu MATE 20.04 LTS

Link to downstream report of your Distribution

https://pad.lv/1889632