LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 10-21-2009, 02:28 PM   #1
Frank64
Member
 
Registered: Feb 2008
Distribution: openSUSE 11.2 64-bits
Posts: 50

Rep: Reputation: 15
Command line for Logout (KMS?) panel/function?


Hi,

I am currently trying to modify an applet for the best linux dock (Cairo-dock) and in that existing applet I want it to call the KDE logout screen, the small window in which you have the basic choices such as Log Out, Shutdown and Restart. I think it's called KMS, but not sure.

What is that command line?

Sure I could call killall, shutdown, reboot and that stuff, but I need 3-4 choices and the applet has a little flaw, it only gives 2 choices. So I wanted to have the main choice calling the logout screen inside which I will find my usual logout-restart-shutdown.

tnx
 
Old 10-21-2009, 02:55 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
I believe the program is some part of ksmserver -- KDE's session manager. How to call that particular dialog, I don't know. I would try opening it up, then switch to a console and see if you can figure out which program was added the ps aux output.
 
Old 10-21-2009, 03:41 PM   #3
Frank64
Member
 
Registered: Feb 2008
Distribution: openSUSE 11.2 64-bits
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pljvaldez View Post
I believe the program is some part of ksmserver -- KDE's session manager. How to call that particular dialog, I don't know. I would try opening it up, then switch to a console and see if you can figure out which program was added the ps aux output.
That's a good idea, I'll give it a try and see if I can find anything.

tnx!
 
Old 10-21-2009, 07:45 PM   #4
Frank64
Member
 
Registered: Feb 2008
Distribution: openSUSE 11.2 64-bits
Posts: 50

Original Poster
Rep: Reputation: 15
Unfortunately it does not work. When you click outside the dialog, the dialog vanishes. I tried with a simple script

sleep 3
ps aux

unfortunately if I bring the dialog after sleep 3, the script freezes, then when I cancel or get out of dialog, the script continues, therefore when it does the ps aux you are already out of the dialog.

I'll see if I can modify the cairo applet differently, other than calling this dialog.

tnx
 
Old 10-22-2009, 11:55 AM   #5
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
Don't click outside the dialog. Try hitting CTRL+ALT+F1 to get to a console. Then you can get back to the gui with CTRL+ALT+F7.
 
Old 10-22-2009, 10:02 PM   #6
Frank64
Member
 
Registered: Feb 2008
Distribution: openSUSE 11.2 64-bits
Posts: 50

Original Poster
Rep: Reputation: 15
Hum, well inside the konsole there is no new process, no difference before and after clicking on the logout button, using ctrl-alt-f1.

So it's not an easy one, yes. Will try to work around this, then.

tnx
 
Old 10-23-2009, 02:33 AM   #7
huaihaizi3
LQ Newbie
 
Registered: Oct 2009
Location: BeiJing China
Distribution: Fedora 15 x64
Posts: 16

Rep: Reputation: 0
For such a long time i adapt to the Command Line Interface(CLI),that almost all the time i use command to operating my system except browse the website!
It's more effective to manage the system though the command .
Just choose what you like!
 
Old 10-23-2009, 11:49 AM   #8
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
Quote:
Originally Posted by Frank64 View Post
Hum, well inside the konsole there is no new process, no difference before and after clicking on the logout button, using ctrl-alt-f1.

So it's not an easy one, yes. Will try to work around this, then.

tnx
I found this. I'm not sure what pops up when you set it to prompt for confirmation. Maybe just the "Are you sure you want to shutdown/logoff/reboot?", not the "which do you want to do?" dialog...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux KMS Intel 865G: Hacking KMS to use vesa... or disable hardware acceleration eantoranz Linux - Hardware 1 08-01-2009 01:58 PM
logout of X session from a command line interface? pwc101 Linux - Software 10 05-02-2006 01:01 PM
Panel command line O_o Linux - Newbie 6 02-24-2004 03:35 AM
RHL9.0 hangs when logout/exit command line mellsie25 Linux - Newbie 7 10-17-2003 10:30 PM
Question: How do you cleanly logout of X using command line? tzeng865 Linux - General 15 01-31-2003 03:16 PM


All times are GMT -5. The time now is 06:37 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration