aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2013-08-24 10:18:32 +0000
committerJani Välimaa <wally@mageia.org>2013-08-24 10:18:32 +0000
commit1193fac3600291b6b92cbb125bab0d6a22c56c2a (patch)
treef1b0b368797e8b558af80b714a825a0cadd1abbd
parentd626cfa66b3f4081b8f858e1b6b21a3c4837982e (diff)
downloadcommon-data-1193fac3600291b6b92cbb125bab0d6a22c56c2a.tar
common-data-1193fac3600291b6b92cbb125bab0d6a22c56c2a.tar.gz
common-data-1193fac3600291b6b92cbb125bab0d6a22c56c2a.tar.bz2
common-data-1193fac3600291b6b92cbb125bab0d6a22c56c2a.tar.xz
common-data-1193fac3600291b6b92cbb125bab0d6a22c56c2a.zip
- detect if used desktop is Xfce and use Xfce's default terminal
-rwxr-xr-xbin/xvt5
1 files changed, 5 insertions, 0 deletions
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`