View previous topic :: View next topic |
Author |
Message |
quellthrix Tux's lil' helper
Joined: 09 May 2005 Posts: 111
|
Posted: Wed Sep 28, 2005 11:40 pm Post subject: ACPID And Xfce4 |
|
|
Well, My Xfce4 desktop is pretty nice at the moment, but I'm wishing for one more thing out of my Gentoo desktop.
Currently, I do not use sudo. Most people here seem to shy away from it, and I take the advice from people smarter than me, so I don't use it. If I want to turn off my computer, my usual way of going about it is to quit the current Xfce session via an xfce-session-logout launcher and then log out of my current shell (I don't use a login manager), then proceed to just push the power button on my computer (I used to never know acpid had such a nice method of grabbing the power button event and cleanly shutting down the computer.) This, of course, is because of my lack of sudo, and so far it's worked pretty well.
Now, though, I was wondering if the following is possible: I want to be able to push my power button while in my Xfce session, have xfce cleanly exit, saving my session, and proceed to shutdown normally. Do I need to modify some acpid-related file to do this, or is Xfce just not able to save and exit it's session just because acpid told it to? Also, am I overly paranoid about sudo, or should I just forget about my physical-access only shutdown process and spring for sudo instead?
I'd be willing to go for sudo if most people here tend to think it's safe enough, although I do like the nice feeling that my normal account can't kill my computer.
Thanks for any help offered. _________________ "Ford," he said, "you're turning into a penguin. Stop it." |
|
Back to top |
|
|
ekutay l33t
Joined: 30 Mar 2005 Posts: 636 Location: Berlin
|
Posted: Thu Sep 29, 2005 12:25 am Post subject: |
|
|
I use sudo very extensively. Because the acpid has to have super user permissions, you can execute everything you like without using sudo. Problem is only being able to grep you button event.
Hence adding a script to everything you like and bind it to the button event should be the first step.
If I'm wrong with acpid permissions you can allow the acpid user in /etc/sudoers to execute your script. _________________ -- erol |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Thu Sep 29, 2005 7:55 am Post subject: |
|
|
Using sudo can be completely safe. To set it up to work well with xfce4 read xfce4 howto from the gentoo wiki. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|