Registered Member
|
Is that possible? Say, lock all the opened sessions?
Last edited by KarlisRepsons on Fri Jul 30, 2010 6:31 pm, edited 2 times in total.
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Administrator
|
You can use this script to lock the screen:
|
Registered Member
|
There is no qdbus in my PATH... What is it?
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Mentor
|
Which KDE version are you using? qdbus should be available for KDE 4.
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size] |
Registered Member
|
So it's clear about 3.5..?
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Mentor
|
Then try
[size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size] |
Registered Member
|
Nice. Thank you.
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Administrator
|
If your problem is solved, please add a [solved] tag to the thread title.
|
Registered Member
|
I think, yes. I have to lock session of each user separately, but is fine as for me.
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Registered Member
|
.. but not really.
On another machine I try that with sudo -H -u target_user dcop kdesktop KScreensaverIface lock and it says, it can't attach to DCOP server. Andother way dcop --all-users --all-sessions kdesktop KScreensaverIface lock fails too and complains, that "DCOPClient::attachInternal. Attach failed Could not open network socket" ant then again about attaching. This is bad. I am sure, firewall is not to blame there. Is 3.5.7 KDE. Please, I don't want to upgrade, can I solve it there?
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Administrator
|
|
Registered Member
|
It could be: no.
No "xscreensaver-command" to execute...
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Registered Member
|
Time flies...
Now it's kde4 and the same question, a bit changed like this: "how to lock all KDE sessions from acpi shell script"?
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Administrator
|
You need to get a list of all logged in users, then run the following command as them. The appropriate D-Bus session bus should be found automatically.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Well I call this from my konsole:
.. and it works, but I call it from vt2 and it complains about inability to connect to X11! What to do? I intended to use from an acpi script so...
KarlisRepsons, proud to be a member of KDE forums since 2008-Nov.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]