From 1193fac3600291b6b92cbb125bab0d6a22c56c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Sat, 24 Aug 2013 10:18:32 +0000 Subject: - detect if used desktop is Xfce and use Xfce's default terminal --- bin/xvt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/xvt b/bin/xvt index efa7882..ad1ca1b 100755 --- a/bin/xvt +++ b/bin/xvt @@ -39,6 +39,11 @@ if [[ -z "$TERMINAL" ]]; then [[ -z "$TERMINAL" ]] && TERMINAL=`which lxterminal 2> /dev/null` fi + #using Xfce + if [[ x"$XDG_CURRENT_DESKTOP" = x"XFCE" ]]; then + [[ -z "$TERMINAL" ]] && TERMINAL=`sed -n -e 's,^TerminalEmulator=\(.*\),\1,p' $HOME/.config/xfce4/helpers.rc 2> /dev/null` + fi + strip_terminal_var [[ -z "$TERMINAL" ]] && TERMINAL=`which aterm 2> /dev/null` -- cgit v1.2.1