]> git.sur5r.net Git - i3/i3/commitdiff
i3-sensible-terminal: check $TERMINAL to not call 'which' without parameters (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 19 Nov 2011 14:08:18 +0000 (14:08 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 24 Dec 2011 14:59:18 +0000 (15:59 +0100)
debian/patches/use-x-terminal-emulator.patch
i3-sensible-terminal

index fd515c168d84a4f6c7e30271622a428d776ceeba..28e9200df49c85caf2fc785e62ffdef694f79cb8 100644 (file)
@@ -11,7 +11,7 @@
 -# distribution-specific mechanism to find the preferred terminal emulator. On
 -# Debian, there is the x-terminal-emulator symlink for example.
 -# Please don't touch the first line, though:
- which $TERMINAL >/dev/null && exec $TERMINAL "$@"
[ -n "$TERMINAL" ] && which $TERMINAL >/dev/null && exec $TERMINAL "$@"
  
 +# Debian-specific: use x-terminal-emulator
 +which x-terminal-emulator >/dev/null && exec x-terminal-emulator "$@"
index 28e60623a2f29f2d4db5c40ae0cb728463cf56e1..e5bf2718be1c3afa8623f6d3b577a6373bffad7b 100755 (executable)
@@ -6,7 +6,7 @@
 # distribution-specific mechanism to find the preferred terminal emulator. On
 # Debian, there is the x-terminal-emulator symlink for example.
 # Please don't touch the first line, though:
-which $TERMINAL >/dev/null && exec $TERMINAL "$@"
+[ -n "$TERMINAL" ] && which $TERMINAL >/dev/null && exec $TERMINAL "$@"
 
 # Hopefully one of these is installed:
 which xterm >/dev/null && exec xterm "$@"