[patch] xfce4-session, libxfce4util: xfce4-shutdown features and code reorg

Brian J. Tarricone bjt23 at cornell.edu
Sat Jan 10 05:09:55 CET 2004


hello all-

i was bored, so i looked for something non-taxing to hack on.  i added 
three configure options to xfce4-session:
--with-poweroff=...
--with-halt=...
--with-reboot=...
which allow the user (or, more likely, distro packagers) to substitute 
custom binary/script locations for those 3 functions in xfce4-shutdown.  
the new code first clears all environment variables, sets a safe PATH, 
and then launches the custom command using g_spawn_command_line_sync() - 
this way you can specify a command with arguments and the binary doesn't 
have to worry about splitting them into an argument list for execl().

also, while i was browsing in the session manager directory, i noticed 
two functions with the note "move to libxfce4util," so i did.

    -brian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xfce4-session.diff
Type: text/x-patch
Size: 5938 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20040109/8615b063/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libxfce4util.diff
Type: text/x-patch
Size: 2917 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20040109/8615b063/attachment-0001.bin>


More information about the Xfce4-dev mailing list