8be4bd7416
- There is no such thing as KDE 5
47 lines
1.8 KiB
Diff
47 lines
1.8 KiB
Diff
diff --git a/kdecore/kernel/kstandarddirs.cpp b/kdecore/kernel/kstandarddirs.cpp
|
|
index ab8f76d..2ae5089 100644
|
|
--- a/kdecore/kernel/kstandarddirs.cpp
|
|
+++ b/kdecore/kernel/kstandarddirs.cpp
|
|
@@ -1768,12 +1768,6 @@ void KStandardDirs::addKDEDefaults()
|
|
else
|
|
{
|
|
xdgdirList.clear();
|
|
- xdgdirList.append(QString::fromLatin1("/etc/xdg"));
|
|
-#ifdef Q_WS_WIN
|
|
- xdgdirList.append(installPath("kdedir") + QString::fromLatin1("etc/xdg"));
|
|
-#else
|
|
- xdgdirList.append(QFile::decodeName(KDESYSCONFDIR "/xdg"));
|
|
-#endif
|
|
}
|
|
|
|
QString localXdgDir = readEnvPath("XDG_CONFIG_HOME");
|
|
@@ -1821,10 +1815,6 @@ void KStandardDirs::addKDEDefaults()
|
|
}
|
|
} else {
|
|
xdgdirList = kdedirDataDirs;
|
|
-#ifndef Q_WS_WIN
|
|
- xdgdirList.append(QString::fromLatin1("/usr/local/share/"));
|
|
- xdgdirList.append(QString::fromLatin1("/usr/share/"));
|
|
-#endif
|
|
}
|
|
|
|
localXdgDir = readEnvPath("XDG_DATA_HOME");
|
|
diff --git a/solid/solid/xdgbasedirs.cpp b/solid/solid/xdgbasedirs.cpp
|
|
index 4c9cad9..6849d45 100644
|
|
--- a/solid/solid/xdgbasedirs.cpp
|
|
+++ b/solid/solid/xdgbasedirs.cpp
|
|
@@ -70,12 +70,12 @@ QStringList Solid::XdgBaseDirs::systemPathList( const char *resource )
|
|
{
|
|
if ( qstrncmp( "data", resource, 4 ) == 0 ) {
|
|
if ( instance()->mDataDirs.isEmpty() ) {
|
|
- instance()->mDataDirs = instance()->systemPathList( "XDG_DATA_DIRS", "/usr/local/share:/usr/share" );
|
|
+ instance()->mDataDirs = instance()->systemPathList( "XDG_DATA_DIRS", "" );
|
|
}
|
|
return instance()->mDataDirs;
|
|
} else if ( qstrncmp( "config", resource, 6 ) == 0 ) {
|
|
if ( instance()->mConfigDirs.isEmpty() ) {
|
|
- instance()->mConfigDirs = instance()->systemPathList( "XDG_CONFIG_DIRS", "/etc/xdg" );
|
|
+ instance()->mConfigDirs = instance()->systemPathList( "XDG_CONFIG_DIRS", "" );
|
|
}
|
|
return instance()->mConfigDirs;
|
|
}
|