]> git.sur5r.net Git - i3/i3/blob - debian/patches/use-x-terminal-emulator.patch
28e9200df49c85caf2fc785e62ffdef694f79cb8
[i3/i3] / debian / patches / use-x-terminal-emulator.patch
1 ## Description: Use Debian-specific x-terminal-emulator in i3-sensible-terminal
2 ## Origin/Author: Michael Stapelberg
3 --- a/i3-sensible-terminal.O    2011-11-11 22:03:52.414218386 +0000
4 +++ b/i3-sensible-terminal      2011-11-11 22:04:38.372020210 +0000
5 @@ -1,13 +1,11 @@
6  #!/bin/sh
7  # This script tries to exec a terminal emulator by trying some known terminal
8  # emulators.
9 -#
10 -# Distributions/packagers should enhance this script with a
11 -# distribution-specific mechanism to find the preferred terminal emulator. On
12 -# Debian, there is the x-terminal-emulator symlink for example.
13 -# Please don't touch the first line, though:
14  [ -n "$TERMINAL" ] && which $TERMINAL >/dev/null && exec $TERMINAL "$@"
15  
16 +# Debian-specific: use x-terminal-emulator
17 +which x-terminal-emulator >/dev/null && exec x-terminal-emulator "$@"
18 +
19  # Hopefully one of these is installed:
20  which xterm >/dev/null && exec xterm "$@"
21  which urxvt >/dev/null && exec urxvt "$@"