Registered Member
|
Hello,
I got an old PC running Gentoo that I use as a file and web server and I decided to install KDE on it so that my nephews can use it to browse the internet and play games when they come over. Since I don't want KDE running all the time I set it up so that KDE starts upon pressing CTRL-ALT-DELETE and changed the command on System Settings > Login Screen > Shutdown so that both shutdown and restart invoke /etc/init.d/xdm stop so they can shutdown the X server when they're done. This works like a charm except that I want to a desktop shortcut to shutdown so I used the following on a shell script:
But this actually reboots the system instead of running the command that I specified on system settings. So the question is, how can I create a shortcut that does exactly the same as click shutdown on the kickoff menu? Thanks, Fernan |
|
First parameter: confirm Obey the user's confirmation setting: -1 Don't confirm, shutdown without asking: 0 Always confirm, ask even if the user turned it off: 1 Second parameter: type Select previous action or the default if it's the first time: -1 Only log out: 0 Log out and reboot the machine: 1 Log out and halt the machine: 2 Third parameter: mode Select previous mode or the default if it's the first time: -1 Schedule a shutdown (halt or reboot) for the time all active sessions have exited: 0 Shut down, if no sessions are active. Otherwise do nothing: 1 Force shutdown. Kill any possibly active sessions: 2 Pop up a dialog asking the user what to do if sessions are still active: 3 |
Registered Member
|
Exactly what I needed. Thanks
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar