Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 3217f2ffb2e1974b9bd45bb03736f88d > files > 4

kdelibs4-4.14.35-1.mga5.src.rpm

From f2b9cf923b76f3eff26942a9b606713946c4bac8 Mon Sep 17 00:00:00 2001
From: Luc Menut <lmenut@mageia.org>
Date: Mon, 6 Oct 2014 00:40:59 +0200
Subject: [PATCH 3/3] Write mimeapps.list in XDG_CONFIG_HOME

as per mime-apps-spec

http://standards.freedesktop.org/mime-apps-spec/mime-apps-spec-1.0.1.html#file
---
 kio/kfile/kopenwithdialog.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kio/kfile/kopenwithdialog.cpp b/kio/kfile/kopenwithdialog.cpp
index 62706c5..1ef73c1 100644
--- a/kio/kfile/kopenwithdialog.cpp
+++ b/kio/kfile/kopenwithdialog.cpp
@@ -772,7 +772,7 @@ static QString simplifiedExecLineFromService(const QString& fullExec)
 
 void KOpenWithDialogPrivate::addToMimeAppsList(const QString& serviceId /*menu id or storage id*/)
 {
-    KSharedConfig::Ptr profile = KSharedConfig::openConfig("mimeapps.list", KConfig::NoGlobals, "xdgdata-apps");
+    KSharedConfig::Ptr profile = KSharedConfig::openConfig(KGlobal::dirs()->localxdgconfdir() + QLatin1String("mimeapps.list"), KConfig::SimpleConfig);
 
     // Save the default application according to mime-apps-spec 1.0
     KConfigGroup defaultApp(profile, "Default Applications");
-- 
2.1.2