openSUSE Forums > Programming/Scripting » Script to log out of KDE

Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-Oct-2009, 00:30
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 25
lenwolf hasn't been rated much yet
Default Script to log out of KDE

Hello all,

Is there a script command, run as normal user, which will log out of KDE?

(What I would like to achieve is for a user to log in, then a determined program is run (wich I can get running by putting a script in that user's ~/.kde4/Autostart) and when the user ends that program, KDE shuts down, so that the user is back at the log in screen - I don't want to shut the machine down itself).

Thanks in advance

Lenwolf
Reply With Quote
  #2 (permalink)  
Old 01-Oct-2009, 01:27
Puzzled Penguin
 
Join Date: Sep 2009
Posts: 8
craverii hasn't been rated much yet
Default Re: Script to log out of KDE

Perhaps KDE Kiosk Mode is your best bet, ultimately?
Reply With Quote
  #3 (permalink)  
Old 01-Oct-2009, 01:33
Wise Penguin
 
Join Date: Jun 2008
Location: NZ
Posts: 1,849
deano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura aboutdeano_ferrari has a spectacular reputation aura about
Default Re: Script to log out of KDE

Agree with last post. This is over my head, but I know the ksmserver config is located at ~/.kde4/share/config/ksmserverrc

I have tried the brutal 'kquitapp ksmserver' from CLI, but I'm not sure about any other unwanted effects.
Reply With Quote
  #4 (permalink)  
Old 01-Oct-2009, 06:40
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 25
lenwolf hasn't been rated much yet
Default Re: Script to log out of KDE

Thanks for your answers.

@ Craverii
I was unaware of the Kiosk Mode, a (very quick) read through the doc you pointed me to doesn't seem to resolve my problem. This seems to be some sort of locked down KDE desktop. I couldn't find a way to close this from a script, but I'll have a better read through this evening.

@
I'll try this command this evening when I'm in front of the machine in question. Any "unwanted effect" you might be aware of ?

Thanks again to both of you.
Reply With Quote
  #5 (permalink)  
Old 01-Oct-2009, 12:08
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 25
lenwolf hasn't been rated much yet
Default Re: Script to log out of KDE

OK I tested the kquitapp command.
Great, this does EXACTLy what I want - it quits KDE and dumps me back to the user login.
(a side effect is that this doesn't save any changes the user may have made to the desktop etc, which again is what I wanted).


Thank you very much!

Lenwolf
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2