Re: [PATCH] 0001-hooks-add-exit-hook

2009-05-25 Thread Julien Danjou
At 1243184445 time_t, Gregor Best wrote: You wouldn't need such a hook. Just append all stuff which needs to be started to the end of your rc.lua Except that it's not very easy to use when you just want to add that code in a module. You can't access rc.lua and telling user to add code ia PITA.

Re: [PATCH] 0001-hooks-add-exit-hook

2009-05-25 Thread Julien Danjou
At 1243177021 time_t, koniu wrote: and the patch :P Pushed. -- Julien Danjou // ᐰ jul...@danjou.info http://julien.danjou.info // 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD // Ferns will rule the world. signature.asc Description: Digital signature

Re: [PATCH] 0001-hooks-add-exit-hook

2009-05-25 Thread Gregor Best
At Mon, 25 May 2009 11:44:25 +0200 Julien Danjou wrote: At 1243184445 time_t, Gregor Best wrote: You wouldn't need such a hook. Just append all stuff which needs to be started to the end of your rc.lua Except that it's not very easy to use when you just want to add that code in a module.

[PATCH] 0001-hooks-add-exit-hook

2009-05-24 Thread koniu
Hey, How about adding a hook that's executed right before awesome exits? This would allow eg. dumping some stuff to a file thus making session saving possible. The proposed patch will run the hooked functions inside awesome_atexit() which also takes effect during awesome restart (including

Re: [PATCH] 0001-hooks-add-exit-hook

2009-05-24 Thread koniu
and the patch :P From 625468d430714577ae6ec5a87004442ca7348117 Mon Sep 17 00:00:00 2001 From: koniu gkusni...@gmail.com Date: Sat, 23 May 2009 16:56:41 +0100 Subject: [PATCH] hooks: add exit hook Signed-off-by: koniu gkusni...@gmail.com --- awesome.c |5 + hooks.c | 13 +

Re: [PATCH] 0001-hooks-add-exit-hook

2009-05-24 Thread Maarten Maathuis
Without even judging the idea i wonder, shouldn't an exit hook also mean a startup hook (maybe just for the real start up)? Especially if you want to do session management'ish things. -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Re: [PATCH] 0001-hooks-add-exit-hook

2009-05-24 Thread Gregor Best
At Sun, 24 May 2009 18:43:04 +0200 Maarten Maathuis wrote: Without even judging the idea i wonder, shouldn't an exit hook also mean a startup hook (maybe just for the real start up)? Especially if you want to do session management'ish things. You wouldn't need such a hook. Just append all

Re: [PATCH] 0001-hooks-add-exit-hook

2009-05-24 Thread Maarten Maathuis
rc.lua is also loaded on awesome restart, i can't imagine that you want to do session management'ish stuff then -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Re: [PATCH] 0001-hooks-add-exit-hook

2009-05-24 Thread Gregor Best
At Sun, 24 May 2009 19:11:42 +0200 Maarten Maathuis wrote: rc.lua is also loaded on awesome restart, i can't imagine that you want to do session management'ish stuff then How would awesome then suppress running the startup hook if it is restarted? IIRC it does a full execve on itself, so

Re: [PATCH] 0001-hooks-add-exit-hook

2009-05-24 Thread Maarten Maathuis
Property on the root window? On Sun, May 24, 2009 at 8:00 PM, Gregor Best farha...@googlemail.com wrote: At Sun, 24 May 2009 19:11:42 +0200 Maarten Maathuis wrote: rc.lua is also loaded on awesome restart, i can't imagine that you want to do session management'ish stuff then How would