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:
Aleix Pol 2021-09-03 17:50:17 +02:00 committed by Aleix Pol Gonzalez
parent 73279acc63
commit be96741803

View file

@ -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 {};