How change "lock command" in Unity 11.10

Asked by Bartosz Bubak

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-screensaver Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

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.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

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

should do what you need

Revision history for this message
Bartosz Bubak (bartosz-bubak) said :
#3

Good idea ;) Simple and usefull.

BTW. It's hardcoded in unity?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

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.