aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2017-03-21 19:20:38 +0200
committerJani Välimaa <wally@mageia.org>2017-03-21 19:20:38 +0200
commit2524e12e13928d7be82b9ffa712f5163ee13aa51 (patch)
tree6ea45a9a7e77d89609034574a6ab79c7bb94fb8f
parent52f6d212f71d53e148a75ed3331fbba7440d8319 (diff)
downloadcommon-data-2524e12e13928d7be82b9ffa712f5163ee13aa51.tar
common-data-2524e12e13928d7be82b9ffa712f5163ee13aa51.tar.gz
common-data-2524e12e13928d7be82b9ffa712f5163ee13aa51.tar.bz2
common-data-2524e12e13928d7be82b9ffa712f5163ee13aa51.tar.xz
common-data-2524e12e13928d7be82b9ffa712f5163ee13aa51.zip
xvt: add support for mate-terminal and default terminal recognition for MATE desktop
-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`