diff options
author | Frederic Crozat <fcrozat@mandriva.com> | 2010-03-15 16:54:15 +0000 |
---|---|---|
committer | Frederic Crozat <fcrozat@mandriva.com> | 2010-03-15 16:54:15 +0000 |
commit | 502e8c19844ad227f9ce666802d1a17c15b44873 (patch) | |
tree | e35fd32fcd803ee48de49491ec613f490c91efe5 | |
parent | 1d098275537fe049ecad7f8952d795263b596c2a (diff) | |
download | common-data-502e8c19844ad227f9ce666802d1a17c15b44873.tar common-data-502e8c19844ad227f9ce666802d1a17c15b44873.tar.gz common-data-502e8c19844ad227f9ce666802d1a17c15b44873.tar.bz2 common-data-502e8c19844ad227f9ce666802d1a17c15b44873.tar.xz common-data-502e8c19844ad227f9ce666802d1a17c15b44873.zip |
fix kde4 detection (pzanoni)
-rwxr-xr-x | bin/xvt | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -32,12 +32,7 @@ if [[ -z "$TERMINAL" ]]; then #using KDE if [[ -n "$KDE_FULL_SESSION" ]]; then - NEWTERMINAL=`grep -m 1 'TerminalApplication=' $HOME/.kde/share/config/kdeglobals 2>/dev/null` - [[ -z "$NEWTERMINAL" ]] && NEWTERMINAL=`grep -m 1 'TerminalApplication=' /etc/kde/kdeglobals 2>/dev/null` - if [[ -n "$NEWTERMINAL" ]]; then - TERMINAL=`echo $NEWTERMINAL| sed -e 's/TerminalApplication=//' -e 's/!//'` - fi - [[ -z "$TERMINAL" ]] && which konsole 2> /dev/null && TERMINAL="konsole" + TERMINAL=`kreadconfig --file kdeglobals --group General --key TerminalApplication --default "konsole"` fi if [[ -n "$_LXSESSION_PID" ]]; then |