LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to add a "Reboot to Windows" option to KDE logout menu? (https://www.linuxquestions.org/questions/linux-software-2/how-to-add-a-reboot-to-windows-option-to-kde-logout-menu-694063/)

simopal6 12-31-2008 09:10 AM

How to add a "Reboot to Windows" option to KDE logout menu?
 
Hello!
I've recently found out about "lilo -R" (I've always hated waiting for Lilo after reboot but never thought that a solution could exist :-) ), but I would like to avoid typing it in a shell windows. It would be easier if I just had a "Reboot to Windows" option in the KDE logout menu.
The question is: do I have to recompile KDE or there is a simpler way (i.e. scripts)?
Thanks!

arckane 12-31-2008 09:45 AM

script it:

Code:

lilo -R whatever
sudo init 0


i92guboj 12-31-2008 12:49 PM

Quote:

Originally Posted by arckane (Post 3392644)
script it:

Code:

lilo -R whatever
sudo init 0


init 0 is halt, he probably wants init 6 (reboot). Most distros offer a way to reboot without using init, though. A "reboot" command. You could also use "shutdown -r now".

Besides that, I guess he's asking about HOW to modify the kde menu, and not how to do this (since he already says he knows about lilo -R on the first post of the thread).

simopal6, do you use kde 3.x or 4.x? I guess this will be different in either version. I haven't kde installed right now so I can't test. It should be something that you can configure in a .desktop file or something like that.

However, if you can't figure out how you can try a couple of things:
  • suse does this I think, with grub, but it can be worth it to check how kde is configure in suse to do that
  • use a desktop icon or a button in the panel, and link your script to that


All times are GMT -5. The time now is 04:11 PM.