how can i modify shutdown option in main menu ?
hi
i want to modify main menu shutdown option so that it shows the list of users logged in when theshutdown option is clicked. pls tell me where can i find the script that displays the dialog box that prompts the user to choose shutdown, restart or cancel. |
Not sure how to do that, but if you open a terminal and type "w", it will tell you what users are logged in.
|
You could write a shell script which executes the following commands:
w poweroff You would have to change the permissions or run the script as root, I guess, to execute the poweroff command. |
Quote:
|
i have the script that displays a dialog box that shows the users logged in.
what i want to know is how to link this script to shutdown option in main menu |
All times are GMT -5. The time now is 04:58 AM. |