qdbus /ScreenSaver Lock fails

David L idht4n at gmail.com
Sat Jan 4 01:22:48 GMT 2014


I just upgraded to 13.10 and a script that used to work for me stopped
working.  Specifically, I had a script that I ran from a cron job that
locked the screen.  The script looks like this:

#!/bin/bash
export DISPLAY=:0.0
export PATH=/usr/lib/x86_64-linux-gnu/qt4/bin:$PATH
qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock

The same thing happened after upgrading from Mint 15 to Mint 16.

Now I get this error when I use this previously working script from ssh or
a cron job:

Service 'org.freedesktop.ScreenSaver' does not exist.

It still works from a local KDE session.

How do I get the old behavior back?  I used it to limit my kids screen time.

Thanks,

       David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde/attachments/20140103/bdac936f/attachment.htm>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list