Re: [kde-linux] Triggering KDE screen lock from script?



Op donderdag 04 oktober 2007, schreef Peter Houppermans:
I was wondering is anyone on this list would know how I could trigger
the KDE screen lock from a script?

Once a user is logged in I would like to run a couple of scripts that
could trigger the screen lock/saver to engage if certain conditions
arose, but so far I have found nothing helpful in the way of hooks. I'm
talking about a standard, boring bash shell script for the moment
(that's all I can manage for the moment, I haven't coded anything in 20
odd years or so, so Python is a little way off yet :-).

Ideas? Suggestions? Beer (you need to be in Zurich for that)?

I think it may not be specifically KDE related, maybe it's more general
call to xscreenlock, but how would it pick the right screen if more
sessions are open?

Use the following command:

dcop kdesktop KScreensaverIface lock

Kind regards,

--
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

Jabber - bram@xxxxxxx

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Relevant Pages

  • Re: How dial outside of KDE/Gnome ???
    ... ]>>> I can dial my ISP nicely from KDE or Gnome. ... Worked fine in command line driven mode (even script ...
    (comp.os.linux.networking)
  • Summary: Re: Installing Gnome and KDE using Jumpstart?
    ... Stefan Varga (great scripts for KDE) ... > use finish script in rules file ... > I want to install KDE and Gnome2.0 on all our clients. ... > updating all of them to Solaris 9, I am trying to add to our jumpstart ...
    (SunManagers)
  • [opensuse] Re: Running a program as root from desktop panel
    ... if you look at Roger's script he's checking to see if the current user is id ... (this is root by the way). ... It's how YaST2 is launched in the KDE desktop ... Now as you mentioned you've got GNOME available you might want to look again ...
    (SuSE)
  • Re: [kde] Log off script
    ... other than the KDE GUI, thats the standard all machines are installed with. ... I can modify the startkde script to copy from server ... The startup MUST be a shell script with the 'sh' ... The shutdown can be any executable and they can be in a subdirectory: ...
    (KDE)
  • [kde-linux] Triggering KDE screen lock from script?
    ... I was wondering is anyone on this list would know how I could trigger ... the KDE screen lock from a script? ... so Python is a little way off yet :-). ...
    (KDE)