Comment 13 for bug 1306917

Revision history for this message
Marcelo Toscani Brandão (mtbrandao) wrote :

@Sean, Tim

OK, let's go.

I'm trying on a Virtual Machine here, fresh installed.
I let it for 10 minutes and then the session was locked.
Checked the options and Light Locker is set to lock the session to "Never"

---------------
grep Exec ~/.config/autostart/light-locker.desktop
grep Exec ~/.config/autostart/screensaver-settings.desktop

There is no "autostart" inside .config

marcelo@marcelo-VirtualBox:~/.config$ ll
total 40
drwx------ 8 marcelo marcelo 4096 Mai 16 09:21 ./
drwxr-xr-x 14 marcelo marcelo 4096 Mai 16 10:02 ../
drwxrwxr-x 2 marcelo marcelo 4096 Mai 16 09:21 dconf/
drwx------ 2 marcelo marcelo 4096 Mai 16 09:21 pulse/
drwx------ 2 marcelo marcelo 4096 Mai 16 09:23 Thunar/
drwx------ 2 marcelo marcelo 4096 Mai 16 09:21 update-notifier/
drwx------ 2 marcelo marcelo 4096 Mai 16 09:21 upstart/
-rw------- 1 marcelo marcelo 632 Mai 16 09:21 user-dirs.dirs
-rw-rw-r-- 1 marcelo marcelo 5 Mai 16 09:21 user-dirs.locale
drwxrwxr-x 6 marcelo marcelo 4096 Mai 16 09:21 xfce4/
marcelo@marcelo-VirtualBox:~/.config$

---------------
ps ux | grep light-locker

marcelo@marcelo-VirtualBox:~/.config$ ps ux | grep light-locker
marcelo 1562 0.0 1.2 247456 13016 ? Sl 10:02 0:00 light-locker
marcelo 2310 0.0 0.0 18936 944 pts/0 S+ 10:15 0:00 grep --color=auto light-locker

---------------
marcelo@marcelo-VirtualBox:~/.config$ xfconf-query -c xfce4-session -l -v | grep Lock
/shutdown/LockScreen false

---------------
marcelo@marcelo-VirtualBox:~/.config$ xfconf-query -c xfce4-power-manager -l -v | grep "dpms\|lock"
/xfce4-power-manager/dpms-enabled true
/xfce4-power-manager/dpms-on-ac-off 15
/xfce4-power-manager/dpms-on-ac-sleep 10
/xfce4-power-manager/dpms-on-battery-off 10
/xfce4-power-manager/dpms-on-battery-sleep 5
/xfce4-power-manager/lock-screen-suspend-hibernate false

After setting the "Enable Light Locker" to OFF, clicking in "Apply", closing the window, opening again, setting "Enable Light Locker" to ON, clicking in "Apply" and closing the window again the directory "autostart" was created in .config.

marcelo@marcelo-VirtualBox:~/.config$ grep Exec ~/.config/autostart/light-locker.desktop
Exec=light-locker --lock-after-screensaver=0 --no-lock-on-suspend --no-late-locking
marcelo@marcelo-VirtualBox:~/.config$ grep Exec ~/.config/autostart/screensaver-settings.desktop
Exec=xset s 600 dpms 900 0 0

And the output of this command changed:
marcelo@marcelo-VirtualBox:~/.config$ ps ux | grep light-locker
marcelo 2358 0.0 0.6 225548 6824 ? Sl 10:18 0:00 light-locker --lock-after-screensaver=0 --no-lock-on-suspend --no-late-locking
marcelo 2374 0.0 0.0 18932 940 pts/0 S+ 10:21 0:00 grep --color=auto light-locker

xconf-query had the same output as before.

The problem is clear here. the autostart directory is never created unless the user manually disables and then enables Light Locker.