SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-08-20 07:22:59

krax
New Member
Registered: 2011-08-19
Posts: 8

Zenity shutdown script with Consolekit

Somehow we are at the new stage hal deprecated and its  changes is not easy for newbies to follows.  also changing sudoers is a dirty and not safe trick So:
The need for zenity script with these feature:
@ Consolekit +dbus
@Logout
@shoutdown
@restart
@suspend
@my be cancel
is really being felt.
So if someone how is able to change the old zentiy openbox script comes forward and do the job; we are all appreciating. big_smile

Last edited by krax (2011-08-20 07:28:59)

Offline

Help fund CrunchBang, donate to the project!

#2 2011-08-20 15:55:52

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 9,418

Re: Zenity shutdown script with Consolekit

Shutdown

dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

Reboot

dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart

Suspend

dbus-send --system --print-reply --dest="org.freedesktop.DeviceKit.Power" /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Suspend

I haven't tested these since I don't use ConsoleKit so someone test them big_smile

Offline

#3 2011-08-20 18:17:11

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: Zenity shutdown script with Consolekit

These work fine. I tested them.
If you like em, set up aliases in your .bashrc or insert them in your main menu.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo