Announcement

Collapse
No announcement yet.

shutdown command in kde4 [solved]

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    shutdown command in kde4 [solved]

    Can anyone tell me the command that brings up the shutdown dialog box in kde4? I found some info here about making a DCOP call but that's dated 2005 - for kde3 I guess - and won't work.
    Basically what I want is a little plasmoid that displays only a shutdown button. I can make it 'just' shutdown by using "shutdown -h now" but I'd like the kde dialog to prevent accidental use, and to make it look nice!

    #2
    Re: shutdown command in kde4

    On of this forums regulars has a repository that contains a nice version of kshutdown for KDE4. It also contains servicemenu-rootactions which are very useful. You can find it at
    https://launchpad.net/~samrog131/+archive/ppa

    Comment


      #3
      Re: shutdown command in kde4

      With the KDE 4 the dcop was replaced by the qdbus.

      Turning off + 30 sec warning (konsole):
      Code:
      qdbus org.kde.ksmserver /KSMServer org.kde.KSMServerInterface.logout 1 2 2


      and those numbers are working same way as with the dcop (i think ).
      1 2 2 = ShutdownConfirmYes ShutdownTypeHalt ShutdownModeForceNow

      Package: qt4-dev-tools (Jaunty) has a handy tool: qdbusviewer



      It is a qdbus viewer/browser...


      The KShutdown is also in the official Jaunty repositories > Topic: KDE 4.2 RC: Shutdown computer withou logging out to KDM


      A plasma-widget > LogOut
      Description:
      This is a modification of the lock/logout plasmoid. It's for those like me, who just need the logout button on the desktop or panel.
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: shutdown command in kde4

        kshutdown is way more than I need, but the qdbus info is just perfect, thankyou!

        Comment

        Working...
        X