LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Shutdown button (https://www.linuxquestions.org/questions/linux-newbie-8/shutdown-button-316951/)

Ezzy 04-25-2005 09:44 AM

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!

reddazz 04-25-2005 10:08 AM

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.

Ezzy 04-25-2005 10:17 AM

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?

bdox 04-25-2005 03:59 PM

in the KDE Menu Editor do:
File->new item->(give any name, e.g. "shutdown")
and in "Command" put /sbin/halt that's it!
=)

Ezzy 04-25-2005 04:08 PM

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?

heema 04-26-2005 05:21 AM

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

bdox 04-26-2005 09:44 AM

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!!


All times are GMT -5. The time now is 02:13 AM.