How change "lock command" in Unity 11.10

Asked by Bartosz Bubak on 2011-10-17

Because in 11.10 screensaver does not exist, i try install xscreensaver. Everything is ok except "lock-command" (ctrl-alt-l).
When i try lock console got error (im not sure what really is in enlgish verison, i use polish one) "Cannot run: gnome-screensaver-command --lock Check command" .
Where this command is set? In CompizConfig theres no entry about it.
How i can change it to "xscreensaver-command -lock" ???

Question information

English Edit question
Ubuntu gnome-screensaver Edit question
No assignee Edit question
Last query:
Last reply:

First you need to work out the right command with:

man gnome-screensaver-command

If there is an item on the Unity Launcher then you will either need to edit the relevant file in /usr/share/applications or you can make your own .desktop file launcher and add that.

Manfred Hampl (m-hampl) said : #2

sudo ln -s /usr/bin/xscreensaver-command /usr/bin/gnome-screensaver-command

should do what you need

Bartosz Bubak (bartosz-bubak) said : #3

Good idea ;) Simple and usefull.

BTW. It's hardcoded in unity?

I believe it should be managed by polkit and should have asked you when it was ran. It's not being done though so we'll just do it ourselves. Watch out for updates as it may change the file.

Can you help with this problem?

Provide an answer of your own, or ask Bartosz Bubak for more information if necessary.

To post a message you must log in.