mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
instead of prepending, append in QGuiPlatformPlugin::iconThemeSearchPaths()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
77645bc9f9
commit
c8d8be1b42
1 changed files with 6 additions and 5 deletions
|
@ -151,6 +151,12 @@ QString QGuiPlatformPlugin::systemIconThemeName()
|
|||
QStringList QGuiPlatformPlugin::iconThemeSearchPaths()
|
||||
{
|
||||
QStringList paths;
|
||||
|
||||
// Add home directory first in search path
|
||||
QDir homeDir(QDir::homePath() + QLatin1String("/.icons"));
|
||||
if (homeDir.exists())
|
||||
paths.append(homeDir.path());
|
||||
|
||||
QString xdgDirString = QFile::decodeName(getenv("XDG_DATA_DIRS"));
|
||||
if (xdgDirString.isEmpty())
|
||||
xdgDirString = QLatin1String("/usr/local/share/:/usr/share/");
|
||||
|
@ -163,11 +169,6 @@ QStringList QGuiPlatformPlugin::iconThemeSearchPaths()
|
|||
paths.append(dir.path() + QLatin1String("/icons"));
|
||||
}
|
||||
|
||||
// Add home directory first in search path
|
||||
QDir homeDir(QDir::homePath() + QLatin1String("/.icons"));
|
||||
if (homeDir.exists())
|
||||
paths.prepend(homeDir.path());
|
||||
|
||||
return paths;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue