Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I am trying to run xfce4-session-logout from an acpi script. The script is called, but logs indicate that xfce4-session-logout has a problem: 'no session manager running'. Subsequently, the logout/shutdown dialog does not appear in my Xfce session.
From /var/log/acpid:
Code:
[Tue Dec 4 11:11:03 2007] received event "button/power PWRF 00000080 00000002"
[Tue Dec 4 11:11:03 2007] notifying client 2830[105:106]
[Tue Dec 4 11:11:03 2007] notifying client 2999[0:0]
[Tue Dec 4 11:11:03 2007] executing action "/etc/acpi/powerbtn-acpi-support.sh"
[Tue Dec 4 11:11:03 2007] BEGIN HANDLER MESSAGES
xfce4-session-logout: No session manager running.
[Tue Dec 4 11:11:04 2007] END HANDLER MESSAGES
[Tue Dec 4 11:11:04 2007] action exited with status 0
[Tue Dec 4 11:11:04 2007] completed event "button/power PWRF 00000080 00000002"
I also get no results when running xfce4-session-logout from a shell. Has anyone had luck running xfce4-session-logout from the command line or a script?
Last edited by ewolf; 12-04-2007 at 12:26 PM.
Reason: i meant 'xfce4-session-logout', not 'xfce-session-logout'
I just tried the xfce4-session-logout command in xterm, and the logout popup appeared.
I'm going to assume that the logout command only works if xfce4-session is running, as well as dbus. This is just an assumption, not hard fact. Do you have both those processes running?
Judging by the error message, I'd say you are using XFCE4 without the session manager.
Actually, I now am getting the logout dialog if I type "xfce4-session-logout" from the shell, and I am not sure why this has changed. I can even script it.... but it doesn't work unless I call the script from the command line. The ACPI event handler tries to execute "xfce4-session-logout" when I press my laptop's power power button, but xfce4-session-logout can't seem to find the xfce4-session that I have open, and thus, no window pops up.
My guess is that it's trying as the user who runs your ACPI daemon. Offhand I can't think of a way to get around that without running the ACPI as the user who is logged in, but you may be able to instead turn xfce4-session-logout into a wrapper that queries the user who is running XFCE4 and executes it as that user.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.