Debian Codegraph @

clients/lab-sensible-terminal

raw
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0-only
3
4 # X11 terminals are at the back of the list in case the script is run
5 # without XWayland support
6 terminals="\
7 x-terminal-emulator \
8 alacritty \
9 foot \
10 kitty \
11 xfce4-terminal \
12 lxterminal \
13 qterminal \
14 mate-terminal \
15 gnome-terminal \
16 konsole \
17 sakura \
18 terminator \
19 terminology \
20 tilix \
21 color-xterm \
22 termit \
23 aterm \
24 roxterm \
25 termite \
26 lilyterm \
27 terminix \
28 guake \
29 tilda \
30 hyper \
31 wezterm \
32 rio \
33 kgx \
34 xterm \
35 uxterm \
36 dtterm \
37 st \
38 nxterm \
39 Eterm \
40 rxvt \
41 urxvt"
42
43 if [ -n "${TERMINAL}" ]; then
44 # ${TERMINAL} is not quoted here, so things like
45 # TERMINAL="foot -T my-terminal" work as expected.
46 exec ${TERMINAL} "$@"
47 fi
48
49 for terminal in $terminals
50 do
51 if command -v "${terminal}" >/dev/null 2>&1
52 then
53 exec "$terminal" "$@"
54 fi
55 done
56
57 exit 1