Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modules/services/AppSearch.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ Singleton {

for (let i = 0; i < list.length; i++) {
const app = list[i];
// Match StartupWMClass — the .desktop field designed exactly for this
// (e.g. brave-browser.desktop has StartupWMClass=brave-browser but
// Exec=brave and Name=Brave, so the other matches below miss it).
if (app.startupClass && app.startupClass.toLowerCase() === normalizedClassName) {
return app.icon || "application-x-executable";
}
if (app.command && app.command.length > 0) {
const executableLower = app.command[0].toLowerCase();
if (executableLower === normalizedClassName) {
Expand Down