mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-04-18 16:10:30 +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 ||
|
execCmd === appPath ||
|
||||||
execBasename === execName ||
|
execBasename === execName ||
|
||||||
execCmd.endsWith(appPath) ||
|
execCmd.endsWith(appPath) ||
|
||||||
appPath.endsWith(execBasename)
|
appPath.endsWith(execBasename) ||
|
||||||
|
path.basename(file, '.desktop') === execName
|
||||||
) {
|
) {
|
||||||
return fullPath
|
return fullPath
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user