aboutsummaryrefslogtreecommitdiffstats
path: root/bin/xvt
diff options
context:
space:
mode:
Diffstat (limited to 'bin/xvt')
-rwxr-xr-xbin/xvt6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/xvt b/bin/xvt
index 5c6b84a..f0c031f 100755
--- a/bin/xvt
+++ b/bin/xvt
@@ -30,6 +30,11 @@ if [[ -z "$TERMINAL" ]]; then
TERMINAL=`gconftool -g /desktop/gnome/applications/terminal/exec`
fi
+ # using MATE
+ if [[ -n "$MATE_DESKTOP_SESSION_ID" || x"$XDG_CURRENT_DESKTOP" = x"MATE" ]]; then
+ TERMINAL=`dconf read /org/mate/desktop/applications/terminal/exec | tr -d \'`
+ fi
+
#using KDE
if [[ -n "$KDE_FULL_SESSION" ]]; then
TERMINAL=`kreadconfig --file kdeglobals --group General --key TerminalApplication --default "konsole"`
@@ -49,6 +54,7 @@ if [[ -z "$TERMINAL" ]]; then
[[ -z "$TERMINAL" ]] && TERMINAL=`which aterm 2> /dev/null`
[[ -z "$TERMINAL" ]] && TERMINAL=`which Eterm 2> /dev/null`
[[ -z "$TERMINAL" ]] && TERMINAL=`which gnome-terminal 2> /dev/null`
+ [[ -z "$TERMINAL" ]] && TERMINAL=`which mate-terminal 2> /dev/null`
[[ -z "$TERMINAL" ]] && TERMINAL=`which konsole 2> /dev/null`
[[ -z "$TERMINAL" ]] && TERMINAL=`which kterm 2> /dev/null`
[[ -z "$TERMINAL" ]] && TERMINAL=`which lxterminal 2> /dev/null`