! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Xfce session should check if system can suspend/hibernate.
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-session
Component:
General

Comments

Description Ali Abdallah editbugs 2009-02-17 15:41:58 CET
Xfce session should check if the system can_suspend and can_hibernate properties from HAL before adding the shutdown widgets to the shutdown dialog box, these services aren't available always, as an example, if one installs Xfce 4.6 on a virtual machine the suspend option won't be available, back to Slackware 12.0 (i guess) both options were not compiled in the kernel, so i believe it is a good enhancement to add such thing.
Comment 1 Mads 2009-03-16 13:31:10 CET
Agreed. Very annoying that xfce4-session-logout shows two large buttons which never can or will be used...
Comment 2 Craig Ringer 2009-06-11 10:17:47 CEST
XFCE should also check PolicyKit to see if the user has the right to shut down, hibernate, suspend, or reboot the system, and omit any buttons for which the user lacks rights.

Currently, all my XFCE thin client users have "shut down" and "reboot" buttons that (a) would act on the server not the client were they enabled, and (b) are disabled by PolicyKit, so they just report an error to the user instead.
Comment 3 Brian J. Tarricone (not reading bugmail) 2009-06-11 17:27:41 CEST
We're not adding PK support for a while.  I'm told that PK is getting a rewrite with a new API "soon."  I'm not going to waste my time with the current API if that's the case.
Comment 4 Brian J. Tarricone (not reading bugmail) 2009-07-16 07:18:20 CEST
Ok, svn trunk now checks HAL properties to see if suspend and hibernate are supported.
Comment 5 Ali Abdallah editbugs 2009-07-16 07:26:31 CEST
(In reply to comment #4)
> Ok, svn trunk now checks HAL properties to see if suspend and hibernate are
> supported.

I will check it out this evening in my Virtual box Xfce installation (no suspend support).

Thanks.

Bug #4952

Reported by:
Ali Abdallah
Reported on: 2009-02-17
Last modified on: 2009-07-16

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
3 users

Version

Version:
4.5.99.1 (4.6 rc 1)

Attachments

Additional information