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 04-25-2005, 10:44 AM   #1
Ezzy
Member
 
Registered: Apr 2005
Posts: 33

Rep: Reputation: 15
Shutdown button


At this moment I'm using the /sbin/halt command to shutdown the system. Is there a way to add a shutdown button to kmenu? I have updated my kdmrc file with the right settings.

[Shutdown]
HaltCmd=/sbin/halt
RebootCmd=/sbin/reboot
UseLilo=true

[X-*-Core]
AllowNullPasswd=false
AllowRootLogin=false
AllowSdForceNow=Root
AllowShutdown=All
AutoReLogin=false
ClientLogFile=.xsession-errors-%s
DefaultSdMode=ForceNow
Reset=/usr/kde/3.3/share/config/kdm/Xreset
ScheduledSd=Optional
Session=/usr/kde/3.3/share/config/kdm/Xsession
SessionsDirs=/usr/share/xsessions
Setup=/usr/kde/3.3/share/config/kdm/Xsetup
Startup=/usr/kde/3.3/share/config/kdm/Xstartup

[X-:*-Core]
AllowNullPasswd=true
AllowRootLogin=true
AllowShutdown=All
ShutdownButton=All
NoPassEnable=false
NoPassUsers=

Any advise?

Thx again!
 
Old 04-25-2005, 11:08 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
It automatically appear in the kmenu if you log in using kdm. You can also add it to your kicker (panel) by right clicking on the panel -> Add to panel -> Applet -> Lock/Logout Applet.
 
Old 04-25-2005, 11:17 AM   #3
Ezzy
Member
 
Registered: Apr 2005
Posts: 33

Original Poster
Rep: Reputation: 15
Both Lock Session and Logout are visable in the Kmenu but these buttons do not Shutdown. If I use Lock it will lock the terminal, if I use logout it just logs out and appears again with an login screen. Your suggestion about adding applets does the same.

Any other suggestions?
 
Old 04-25-2005, 04:59 PM   #4
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
in the KDE Menu Editor do:
File->new item->(give any name, e.g. "shutdown")
and in "Command" put /sbin/halt that's it!
=)
 
Old 04-25-2005, 05:08 PM   #5
Ezzy
Member
 
Registered: Apr 2005
Posts: 33

Original Poster
Rep: Reputation: 15
Great! That was the answer I was looking for, was indeed really easy............... Is there also a way to put this "button" in the Actions area in the Kmenu?
 
Old 04-26-2005, 06:21 AM   #6
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
there is a program called KshutDown

http://kde-apps.org/content/show.php?content=9754

if you want to add a service menu to shutdown then you could do something like this

Code:
[Desktop Entry]
ServiceTypes=application/*
Type=Application
Actions=shutdown

[Desktop Action shutdown]
Name=Shutdown
Icon=exec
Exec=/sbin/halt
and save it as shutdown.desktop in either
/opt/kde3/share/apps/konqueror/servicemenus/
or
/usr/share/apps/konqueror/servicemenus/


NOTE : i havent tested it as i am at work now (using windows ;( ) , so you may have to edit it

http://developer.kde.org/documentati...vicemenus.html
http://www.kde-apps.org/content/show...793f94187a3d3d

Last edited by heema; 04-26-2005 at 06:29 AM.
 
Old 04-26-2005, 10:44 AM   #7
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
Quote:
Originally posted by Ezzy
Great! That was the answer I was looking for, was indeed really easy............... Is there also a way to put this "button" in the Actions area in the Kmenu?
Nice that I could help you!! =)
follow heema if you want to put this "button" in the Actions area in the Kmenu...
Cheers!!
 
  


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
shutdown button missing in gnome bhar0761 Fedora 5 08-02-2005 11:59 AM
Power Button for Shutdown gokul Linux - Hardware 4 01-24-2004 01:40 PM
RH 9 orderly shutdown by power button? geezjan Red Hat 1 09-19-2003 11:01 AM
Shutdown with power button hriosm Linux - Hardware 4 06-06-2003 03:43 PM
Shutdown routine with power button bfought Linux - Newbie 2 09-09-2002 07:23 PM


All times are GMT -5. The time now is 05:12 AM.

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