Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Updated readme file
- Loading branch information
1 parent
8d99c5f
commit 70b9f7c
Showing
2 changed files
with
20 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,17 +1,23 @@ | |||
To use this program, assert it is located in your $PATH. Then, simply run it | Requirements: | ||
like any other program. You will be presented with a dialog asking you whether | * Python 2.4+ | ||
you want to logout, reboot or shutdown. Reboot and shutdown should work out of | * PyGTK 2.6+ | ||
the box (if you have permission - see below); logout will only work without | * gksu (not needed if you use the consolekit patch) | ||
further configuration if you are using Openbox. | |||
|
|
||
To use logout from different window managers, export the environment variable | Optional Requirements: | ||
LOGOUT_COMMAND, setting it to the command needed to perform a logout from your | * consolekit (if you want to use consolekit rather than /sbin/shutdown and gksudo) | ||
window manager. Alternatively, you can leave LOGOUT_COMMAND unset and specify | * pm-utils (if you want suspend and hibernate support but no consolekit) | ||
the command as an argument to pygtk-shutdown. In this case, there is no | * upower (if you want suspend and hibernate support with consolekit) | ||
need to escape the command, as it will be taken as a literal string. | |||
|
|
||
There are included patches for support for consolekit, consolekit+upower, or pm-utils | To install this program, copy it to a location in the system $PATH, or store | ||
it elsewhere and create a symbolic link to it in $PATH. The program itself | |||
does not require any more installation. | |||
|
|
||
Notice: in order to use pygtk-shutdown, the user you are calling it as | You will need to add the users you wish to grant permission to use this | ||
must have sudo permission to execute /sbin/shutdown. See INSTALL and | program to /etc/sudoers; see sudoers(5). It is recommended you give your user | ||
sudoers(5) for more information. | permission to use the /sbin/shutdown program without a password, though not | ||
necessary (but the user will be prompted for a password). In any case, your | |||
users need permission to execute /sbin/shutdown through sudo, with or without | |||
a password. | |||
|
|||
To apply one of the patches, use the patch utility: | |||
patch pygtk-shutdown PATCHNAME.patch |