Test first desktop file names with the .desktop extension appended
It's the right thing to do, without it's only a fallback for bogus applications.
This commit is contained in:
parent
73279acc63
commit
be96741803
1 changed files with 2 additions and 2 deletions
|
@ -2711,11 +2711,11 @@ QString AbstractClient::iconFromDesktopFile(const QString &desktopFileName)
|
|||
|
||||
if (desktopFilePath.isEmpty()) {
|
||||
desktopFilePath = QStandardPaths::locate(QStandardPaths::ApplicationsLocation,
|
||||
desktopFileName);
|
||||
desktopFileNameWithPrefix);
|
||||
}
|
||||
if (desktopFilePath.isEmpty()) {
|
||||
desktopFilePath = QStandardPaths::locate(QStandardPaths::ApplicationsLocation,
|
||||
desktopFileNameWithPrefix);
|
||||
desktopFileName);
|
||||
}
|
||||
if (desktopFilePath.isEmpty()) {
|
||||
return {};
|
||||
|
|
Loading…
Reference in a new issue