Instructions
doorknob60 edited this page Aug 23, 2011
·
3 revisions
- Python 2.4+
- PyGTK 2.6+
- gksu (not required if using consolekit instead)
- consolekit (if you want to use consolekit rather than /sbin/shutdown and gksudo)
- pm-utils (if you want suspend and hibernate support but no consolekit)
- upower (if you want suspend and hibernate support with consolekit)
To install, simply checkout the source via git:
git clone git://github.com/doorknob60/pygtk-shutdown.git
Then, simply copy "pygtk-shutdown" to somewhere in your path, such as /usr/local/bin or /usr/bin (root priveleges required)
sudo cp pygtk-shutdown/pygtk-shutdown /usr/local/bin/
Finally, ensure that it is executable
sudo chmod +x /usr/local/bin/pygtk-shutdown
For more information on the patch utility, see its man page, but its basic context is as follows
patch [ORIGFILE] [PATCHFILE]
If you want to apply the consolekit patch to use consolekit for shutting down rather than gksudo and /sbin/shutdown, run this:
patch pygtk-shutdown consolekit.patch
If you want to apply the pm-utils patch to enable support for suspend and hibernate (without using consolekit or dbus), run this:
patch pygtk-shutdown pm-utils.patch
And to apply consolekit+upower patch to use consolekit and also use upower for suspend/hibernate, run this:
patch pygtk-shutdown consolekit-upower.patch