adding support for hibernation to xfce4-sessions's exit dialog
Andre Puschmann
andre.puschmann at stud.tu-ilmenau.de
Wed Jul 12 18:51:01 CEST 2006
hi,
i added support for xfsm-shutdown-helper in order to understand commands
like SHUTDOWN_HIBERNATE and SHUTDOWN_HIBERNATERAM which ends up in a
call of "hibernate" and "hibernate-ram" which are quite common scripts
to invoke hibernation.
further i integrated those buttons in the "End Session" dialog.
i'd like to check whether "hibernate"-command is available or not in
order to display the button or not, but g_find_program_in_path
("hibernate") for instance only looks up in users-path. can anybody
suggest an other solution?
the appended patch shows how this can look like, can you please have a
look over it?
regards
andre
Jani Monoses wrote:
>> Yes, with the previously spawned shutdown helper (required to test
>> whether sudo needs a password).
>>
>> BTW: IIRC, there's already such a patch available in Xubuntu.
>
> Indeed there is, but not using the sudo helper. It talks directly to HAL
> and could be used on any other modern linux distro (and FreeBSD once HAL
> is fully ported). As xfce is in feature freeze I got the impression that
> such a patch is not approproate at this point. It is nonintrusive
> however and I can make an uptodate patch if people thinks that it'd be
> good to have in 4.4.
>
> Jani
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xfce4-session-4.3.90.2-hibernate.patch
Type: text/x-patch
Size: 10955 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20060712/ba13001f/attachment.bin>
More information about the Xfce4-dev
mailing list