summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Fella <nicolas.fella@gmx.de>2023-07-05 11:02:20 +0200
committerNicolas Fella <nicolas.fella@gmx.de>2023-07-05 11:02:20 +0200
commiteb8a24bb0923bfcb74c29a3147d920ee7a5ff83d (patch)
tree4cb4454dbf6ffefff962aa79e59cdcb2acb35865
parentc10cdaf8a03997cc18e51ee6299f0dcc02c34870 (diff)
xdg-settings: Use right config tools on Plasma 6
-rwxr-xr-xscripts/xdg-settings.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/xdg-settings.in b/scripts/xdg-settings.in
index ab18d3a..fed5932 100755
--- a/scripts/xdg-settings.in
+++ b/scripts/xdg-settings.in
@@ -148,6 +148,8 @@ read_kde_config()
configkey="$3"
if [ x"${KDE_SESSION_VERSION}" = x"5" ]; then
application="`kreadconfig5 --file $configfile --group $configsection --key $configkey`"
+ elif [ x"${KDE_SESSION_VERSION}" = x"6" ]; then
+ application="`kreadconfig6 --file $configfile --group $configsection --key $configkey`"
else
application="`kreadconfig --file $configfile --group $configsection --key $configkey`"
fi
@@ -267,6 +269,8 @@ set_browser_kde()
set_browser_mime "$1" "text/html" || return
if [ x"${KDE_SESSION_VERSION}" = x"5" ]; then
kwriteconfig5 --file kdeglobals --group General --key BrowserApplication "$1"
+ elif [ x"${KDE_SESSION_VERSION}" = x"6" ]; then
+ kwriteconfig6 --file kdeglobals --group General --key BrowserApplication "$1"
else
kwriteconfig --file kdeglobals --group General --key BrowserApplication "$1"
fi
@@ -624,6 +628,8 @@ set_url_scheme_handler_kde()
binary="`desktop_file_to_binary "$2"`"
if [ x"${KDE_SESSION_VERSION}" = x"5" ]; then
kwriteconfig5 --file emaildefaults --group PROFILE_Default --key EmailClient "$binary"
+ elif [ x"${KDE_SESSION_VERSION}" = x"6" ]; then
+ kwriteconfig6 --file emaildefaults --group PROFILE_Default --key EmailClient "$binary"
else
kwriteconfig --file emaildefaults --group PROFILE_Default --key EmailClient "$binary"
fi