diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-06-05 01:08:54 +0200 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-06-05 01:08:54 +0200 |
commit | bbcbb9a9c00cb4c0ad277282f5fa4e32e347893e (patch) | |
tree | 1a8e4fb060729e38f4fdddcf4acef41e055cc026 /contrib/sloppy.c | |
parent | 7a155e8fad801b99125a654f74a6125249da8104 (diff) | |
download | ratpoison-bbcbb9a9c00cb4c0ad277282f5fa4e32e347893e.zip |
contrib/sloppy.c: ensure $RATPOISON is set
Diffstat (limited to 'contrib/sloppy.c')
-rw-r--r-- | contrib/sloppy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/sloppy.c b/contrib/sloppy.c index deeea3f..7e026ca 100644 --- a/contrib/sloppy.c +++ b/contrib/sloppy.c @@ -64,6 +64,10 @@ main (void) exit (1); } + /* Ensure child shell will have $RATPOISON set. */ + if (!getenv ("RATPOISON")) + setenv ("RATPOISON", "ratpoison", 0); + defaulthandler = XSetErrorHandler (errorhandler); numscreens = ScreenCount (display); |