Skip to content

Commit

Permalink
Fix identification of theme icons
Browse files Browse the repository at this point in the history
  • Loading branch information
dseight committed Sep 1, 2020
1 parent e2dd24b commit 928cad3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/iconupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ QString resolveIconPath(const QString &iconId)

bool isThemeIcon(const QString &iconPath)
{
return iconPath.startsWith("/usr/share/themes/") || iconPath.startsWith("/var/lib/apkd/");
return iconPath.startsWith("/usr/share/themes/")
|| iconPath.startsWith("/var/lib/apkd/")
// Unexpected daemon close may lead to stale icon path in desktop file.
// As icon path replacement is used only for theme icons, it's defenitely
// an icon from theme.
|| iconPath.startsWith("/usr/share/clockwork/");
}

} // namespace
Expand Down

0 comments on commit 928cad3

Please sign in to comment.