aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2010-03-15 16:54:15 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2010-03-15 16:54:15 +0000
commit502e8c19844ad227f9ce666802d1a17c15b44873 (patch)
treee35fd32fcd803ee48de49491ec613f490c91efe5
parent1d098275537fe049ecad7f8952d795263b596c2a (diff)
downloadcommon-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-xbin/xvt7
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/xvt b/bin/xvt
index 8e65ac6..b0215bf 100755
--- a/bin/xvt
+++ b/bin/xvt
@@ -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