Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My situation:
1. Need auto login for my wheezy.
2. Sometimes I'm away of my pc, when it reboots, need to lock the screen after auto login. When I type /usr/bin/gnome-screensaver-command -l it locks fine. But adding it to startup applications, somehow does not work.


Any ideas, how to solve my problem?

share|improve this question

1 Answer 1

Create executable script and add it to startup applications instead of screensaver initialization, this should works fine:

/usr/bin/gnome-screensaver &

sleep 1 && /usr/bin/gnome-screensaver-command -l

When you add gnome-screensaver-command -l to startup, it runs when screensaver isn't fully initialized. Because of that it doesn't work.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.