diff options
author | sabetts <sabetts> | 2005-02-10 02:14:43 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2005-02-10 02:14:43 +0000 |
commit | 3fac62ca1f2d01907cbfca54f881c3218a1eca41 (patch) | |
tree | 4be95dc63298d058e74881674797792ab1bf38b2 /src | |
parent | 062f1e3ffc7527dce3583e1e7e785edeab32cbd4 (diff) | |
download | ratpoison-3fac62ca1f2d01907cbfca54f881c3218a1eca41.zip |
(main): set the RATPOISON env. variable to the path
to this executable.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 (); |