[kde-linux] K Menu->Log Out->Restart through command-line?

Kevin Krammer kevin.krammer at gmx.at
Sun Dec 30 16:18:46 UTC 2007


On Sunday 30 December 2007, Werner Joss wrote:
> Am Sonntag, 30. Dezember 2007 12:38:08 schrieb daniel åkerud:
> > I actually want to reboot the computer, like "Restart" does in KDE, and
> > the suggestions above doesn't do that. In other words, I want to do the
> > KDE equivalent to /sbin/reboot (but still save session and whatever KDE
> > does).Btw, I'm using Kubuntu 7.10. Thanks,
> > /D
>
> have a look at http://kde-apps.org/content/show.php/KShutdown?content=9754
> - you can use it from the CLI like this:
> kshutdown -r 0

This is probably the most convenient way.

As an alternative it should be possible through DCOP

$ dcop ksmserver ksmserver logout 0 1 0

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20071230/ced18a1e/attachment.sig>


More information about the kde-linux mailing list