]> git.sur5r.net Git - i3/i3/commitdiff
tests: unset $ENV{SHELL} to avoid breakage with fish (Thanks dRbiG)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 15 Feb 2013 15:41:28 +0000 (16:41 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 15 Feb 2013 15:41:28 +0000 (16:41 +0100)
testcases/lib/SocketActivation.pm

index ea6ae97d52d88d33f6b8b7462817e91dc0eb3d51..228caaa620b3eb7f05edb8573355bd53907c4ef2 100644 (file)
@@ -53,6 +53,10 @@ sub activate_i3 {
         $ENV{LISTEN_FDS} = 1;
         delete $ENV{DESKTOP_STARTUP_ID};
         delete $ENV{I3SOCK};
+        # $SHELL could be set to fish, which will horribly break running shell
+        # commands via i3’s exec feature. This happened e.g. when having
+        # “set-option -g default-shell "/usr/bin/fish"” in ~/.tmux.conf
+        delete $ENV{SHELL};
         unless ($args{dont_create_temp_dir}) {
             $ENV{XDG_RUNTIME_DIR} = '/tmp/i3-testsuite/';
             mkdir $ENV{XDG_RUNTIME_DIR};