Here is the work around I found:
The lock button in the mint menu is calling "mate-screensaver-command -l"
(source:
https://github.com/linuxmint/mintmenu/b ... agement.py)
1) First, please note that I installed lightdm like this:
Code: Select all
sudo add-apt-repository ppa:lightdm-gtk-greeter-team/stable
sudo apt-get update
apt-get install lightdm lightdm-gtk-greeter light-locker light-locker-settings
apt-get purge mdm
* "apt-get purge mdm" is required to allow user switching. I not removed, you get an error message when switching user.
2) I placed a bash file named "mate-screensaver-command" in my /usr/local/bin folder (this location is checked before /usr/bin in the default PATH)
Here is the content:
Code: Select all
#!/bin/bash
if [ $1 == "-l" ] ; then
dm-tool lock
fi
3) In the mate-screensaver settings I disabled everything (timeout, screensaver, lock, etc)
4) In light-locker-settings I set the lock timeout to 10 minutes.
Now I'm happy for at least 3 reasons:
1) When I click the lock button in the mint menu, it is the light-locker that is executed, not the mate-screensaver.
2) After 10 minutes, it is the light-locker that is executed, not the mate-screensaver.
3) When user A come back from user B (see my previous post), I don't have anymore to enter my password two times.
Others notes:
If you want your lightdm greether look more like Mint MATE: edit "lightdm-gtk-greeter.conf"
Code: Select all
sudo pluma /etc/lightdm/lightdm-gtk-greeter.conf
... and decorerate
* background=
(...path to your favorite background located in a folder readable for all users)
* theme-name=Mint-X-Aqua
(for example)
* font-name=Noto Sans
(this is the defaut Mint font)