fix: match desktop file by name for linux app icon lookup

This commit is contained in:
Memory 2026-04-05 17:02:13 +08:00 committed by GitHub
parent 06591b50f4
commit 58a11fa232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,8 @@ async function findDesktopFile(appPath: string): Promise<string | null> {
execCmd === appPath ||
execBasename === execName ||
execCmd.endsWith(appPath) ||
appPath.endsWith(execBasename)
appPath.endsWith(execBasename) ||
path.basename(file, '.desktop') === execName
) {
return fullPath
}