LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2004, 07:32 PM   #1
Boffy
Member
 
Registered: Jul 2003
Location: Durham, UK
Distribution: Ubuntu 8.04
Posts: 419

Rep: Reputation: 30
Log Out and Shutdown Shortcut


Is there any script I can create that would allow me to shut down the computer and log the user out of KDE saving there session in the process.

I am running GDM and currently the only way out is to log out then shutdown from the login menu. This isnt too much of a problem but a more direct route would be nice.

The user would not be logged in as root so the script would i presume have to be put into super user mode before running shutdown.

Boffy
 
Old 07-27-2004, 10:06 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The problem you're facing here is that a call to
shutdown or reboot from root (or the user via su
or sudo or using the sticky-bit) won't log the user
out in a soft manner, but rather send the XServer
a term which would most likely stop KDE from saving
the session ... and for all I know none of the WMs/
DMs support logout-scripts ... you may be stuck
with the manual shutdown via gdm ...


Cheers,
Tink
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
SElinux / shutdown log linmix Linux - Software 0 09-23-2005 06:01 PM
Kdm will not let me log out or shutdown J_Szucs Linux - General 3 05-27-2005 11:00 AM
where is log for shutdown xkwauk Linux - Software 2 05-28-2004 08:18 PM
Log out = menu with no shutdown items svarreby Slackware 2 12-30-2003 08:57 AM
where is the shutdown log? hamish Red Hat 4 09-28-2003 06:48 PM


All times are GMT -5. The time now is 05:48 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration