Index: third_party/xdg-utils/scripts/xdg-settings.in |
=================================================================== |
--- third_party/xdg-utils/scripts/xdg-settings.in (revision 57942) |
+++ third_party/xdg-utils/scripts/xdg-settings.in (working copy) |
@@ -218,7 +218,8 @@ |
fi |
# kreadconfig in KDE 4 may not notice Key[$*]=... localized settings, so check |
# by hand if it didn't find anything (oddly kwriteconfig works fine though). |
- kdeglobals="${KDE_HOME:-$HOME/.kde}/share/config/kdeglobals" |
+ kdeglobals_dir=`kde${KDE_SESSION_VERSION}-config --path config | cut -d ':' -f 1` |
+ kdeglobals="$kdeglobals_dir/kdeglobals" |
[ ! -f "$kdeglobals" ] && return |
# This will only take the first value if there is more than one. |
grep '^BrowserApplication\[$[^]=]*\]=' "$kdeglobals" | head -n 1 | cut -d= -f 2- |