summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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 ();