From 3fac62ca1f2d01907cbfca54f881c3218a1eca41 Mon Sep 17 00:00:00 2001 From: sabetts Date: Thu, 10 Feb 2005 02:14:43 +0000 Subject: (main): set the RATPOISON env. variable to the path to this executable. --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 (); -- cgit v1.2.3