]> git.sur5r.net Git - i3/i3/blobdiff - i3-sensible-terminal
Merge pull request #1651 from tanderson92/pkgconfig
[i3/i3] / i3-sensible-terminal
index a9975740864c07c51e2c18e1095f8eb43511ea65..dd4b075ac981740144011de201ebcb5acba232c3 100755 (executable)
@@ -5,11 +5,13 @@
 # This script tries to exec a terminal emulator by trying some known terminal
 # emulators.
 #
-# Distributions/packagers should enhance this script with a
-# distribution-specific mechanism to find the preferred terminal emulator. On
-# Debian, there is the x-terminal-emulator symlink for example.
-for terminal in $TERMINAL urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm; do
-    if which $terminal > /dev/null 2>&1; then
+# We welcome patches that add distribution-specific mechanisms to find the
+# preferred terminal emulator. On Debian, there is the x-terminal-emulator
+# symlink for example.
+for terminal in $TERMINAL x-terminal-emulator urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm xfce4-terminal termite lxterminal; do
+    if command -v $terminal > /dev/null 2>&1; then
         exec $terminal "$@"
     fi
 done
+
+i3-nagbar -m 'i3-sensible-terminal could not find a terminal emulator. Please install one.'