Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ACPID And Xfce4
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
quellthrix
Tux's lil' helper
Tux's lil' helper


Joined: 09 May 2005
Posts: 111

PostPosted: Wed Sep 28, 2005 11:40 pm    Post subject: ACPID And Xfce4 Reply with quote

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. :mrgreen: 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
View user's profile Send private message
ekutay
l33t
l33t


Joined: 30 Mar 2005
Posts: 636
Location: Berlin

PostPosted: Thu Sep 29, 2005 12:25 am    Post subject: Reply with quote

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
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Thu Sep 29, 2005 7:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
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