summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsabetts <sabetts>2005-02-10 02:14:43 +0000
committersabetts <sabetts>2005-02-10 02:14:43 +0000
commit3fac62ca1f2d01907cbfca54f881c3218a1eca41 (patch)
tree4be95dc63298d058e74881674797792ab1bf38b2 /src
parent062f1e3ffc7527dce3583e1e7e785edeab32cbd4 (diff)
downloadratpoison-3fac62ca1f2d01907cbfca54f881c3218a1eca41.zip
(main): set the RATPOISON env. variable to the path
to this executable.
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index deef611..5b7bb25 100644
--- a/src/main.c
+++ b/src/main.c
@@ -624,6 +624,9 @@ main (int argc, char *argv[])
set_sig_handler (SIGHUP, hup_handler);
set_sig_handler (SIGCHLD, chld_handler);
+ /* Add RATPOISON to the environment */
+ putenv (xsprintf ("RATPOISON=%s", argv[0]));
+
/* Setup ratpoison's internal structures */
init_globals ();
init_defaults ();