diff options
author | Jani Välimaa <wally@mageia.org> | 2013-08-24 10:18:32 +0000 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2013-08-24 10:18:32 +0000 |
commit | 1193fac3600291b6b92cbb125bab0d6a22c56c2a (patch) | |
tree | f1b0b368797e8b558af80b714a825a0cadd1abbd | |
parent | d626cfa66b3f4081b8f858e1b6b21a3c4837982e (diff) | |
download | common-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-x | bin/xvt | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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` |