diff options
author | Jani Välimaa <wally@mageia.org> | 2017-03-21 19:20:38 +0200 |
---|---|---|
committer | Jani Välimaa <wally@mageia.org> | 2017-03-21 19:20:38 +0200 |
commit | 2524e12e13928d7be82b9ffa712f5163ee13aa51 (patch) | |
tree | 6ea45a9a7e77d89609034574a6ab79c7bb94fb8f | |
parent | 52f6d212f71d53e148a75ed3331fbba7440d8319 (diff) | |
download | common-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-x | bin/xvt | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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` |