Re: [PATCH] exit function
- From: Christopher Roy Bratusek <zanghar freenet de>
- To: sawfish-list gnome org
- Subject: Re: [PATCH] exit function
- Date: Sat, 5 Dec 2009 11:47:42 +0100
Am Sat, 05 Dec 2009 14:03:18 +0900 (JST)
schrieb Teika Kazura <teika lavabit com>:
> We've been terrible for suspend; after the function call, it comes
> back. So it should be
of course, sorry.
>
> (define (exit action)
> (case action
> ((reboot)
> (call-hook 'before-exit-hook)
> (map-windows delete-window)
> (system (format nil "%s &" reboot-command)))
> ((halt)
> (call-hook 'before-exit-hook)
> (map-windows delete-window)
> (system (format nil "%s &" halt-command)))
> ((suspend) (system (format nil "%s &" suspend-command)))
> ((hibernate) (system (format nil "%s &" hibernate-command)))))
>
O.K. I'll be commiting it now. But I've kept the group as "External
Applications".
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]