mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-04-12 23:50:31 +08:00
fix: match desktop file by name for linux app icon lookup
This commit is contained in:
parent
06591b50f4
commit
58a11fa232
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user