You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kde-cli-tools/0004-Save-settings-into-.co...

28 lines
1.0 KiB

From c4ebd9b537d749e5533ecaff5631debab4827760 Mon Sep 17 00:00:00 2001
From: David Faure <faure@kde.org>
Date: Tue, 29 Dec 2015 00:07:09 +0100
Subject: [PATCH 04/10] Save settings into ~/.config rather than deprecated
~/.local/share/apps/
BUG: 354179
---
keditfiletype/mimetypedata.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/keditfiletype/mimetypedata.cpp b/keditfiletype/mimetypedata.cpp
index 808760b..f706def 100644
--- a/keditfiletype/mimetypedata.cpp
+++ b/keditfiletype/mimetypedata.cpp
@@ -365,7 +365,7 @@ void MimeTypeData::syncServices()
if (!m_bFullInit)
return;
- KSharedConfig::Ptr profile = KSharedConfig::openConfig("mimeapps.list", KConfig::NoGlobals, QStandardPaths::ApplicationsLocation);
+ KSharedConfig::Ptr profile = KSharedConfig::openConfig("mimeapps.list", KConfig::NoGlobals, QStandardPaths::GenericConfigLocation);
if (!profile->isConfigWritable(true)) // warn user if mimeapps.list is root-owned (#155126/#94504)
return;
--
2.5.0