LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Shutdown button on the xfce Desktop (https://www.linuxquestions.org/questions/linux-general-1/shutdown-button-on-the-xfce-desktop-868910/)

cccc 03-16-2011 07:29 AM

Shutdown button on the xfce Desktop
 
hi

I have Debian Squeeze with xfce installed.
Howto create a "Shutdown" button on xfce Desktop?

Wellesly 03-16-2011 11:10 AM

  1. Right click on a panel, or right click one of the items on your desktop's panel.
    1. If you right click on a panel item, choose "Panel" from the list that appears.
  2. Click "Add New Items..." to open the "Add New Items" dialog.
  3. Select "Action Buttons" and click "Add". A new icon will appear on the panel. You may now close the "Add New Items" dialog.
  4. Right click on the icon that has appeared.
  5. Click "Properties" in the list that appears.
  6. Set the "First Button" option to "Shutdown".

cccc 03-16-2011 11:35 AM

Thx a lot, but howto copy this "Action Button" from Panel to the Desktop?

Wellesly 03-16-2011 03:10 PM

I'm sorry; I don't know a way to do that without editing /etc/sudoers to permit ordinary users to run shutdown, and I feel like there must be an easier way, as the Xfce shutdown menu doesn't need that kind of configuring. Unless someone more knowledgeable gives you an answer, I'll need to do some more research.

cccc 03-17-2011 11:26 AM

I solved this problem.

I have created a desktop launcher with this command:
Code:

/usr/bin/xfce4-session-shutdown.sh
and I'm using this shutdown script:
Code:

# cat /usr/bin/xfce4-session-shutdown.sh

#! /bin/sh
sudo /sbin/shutdown -h now $*

and here some tips to shutdown under xfce:

http://wiki.xfce.org/tips


All times are GMT -5. The time now is 05:32 PM.