adding support for hibernation to xfce4-sessions's exit dialog

Rodrigo Coacci rcoacci at gmail.com
Wed Jul 12 19:00:35 CEST 2006


I guess it should also check for system capability for doing those things. I
read somewhere else that a simple "cat /proc/something" or  /sys/something
should do the trick. I'm telling this because if hibernate is called in a
system no "ready" for it, it may cause real data loss.... I don't know how
xubuntu ppl work around this, maybe they already have some better HAL-based
solution

2006/7/12, Andre Puschmann <andre.puschmann at stud.tu-ilmenau.de>:
>
> 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
>
>
>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce4-dev
>
>
>


-- 
Abraços,
      Rodrigo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20060712/9bdd4299/attachment.html>


More information about the Xfce4-dev mailing list