launcher: fix opening apps
Run exec string when proc app2unit fails
This commit is contained in:
parent
a274a8548e
commit
620ff52f75
1 changed files with 1 additions and 11 deletions
|
|
@ -2,7 +2,6 @@ pragma Singleton
|
||||||
|
|
||||||
import "root:/utils/scripts/fuzzysort.js" as Fuzzy
|
import "root:/utils/scripts/fuzzysort.js" as Fuzzy
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
|
||||||
|
|
||||||
Singleton {
|
Singleton {
|
||||||
id: root
|
id: root
|
||||||
|
|
@ -23,15 +22,6 @@ Singleton {
|
||||||
}
|
}
|
||||||
|
|
||||||
function launch(entry: DesktopEntry): void {
|
function launch(entry: DesktopEntry): void {
|
||||||
launchProc.entry = entry;
|
Quickshell.execDetached(["sh", "-c", `app2unit -- '${entry.id}.desktop' || app2unit -- ${entry.execString}`]);
|
||||||
launchProc.startDetached();
|
|
||||||
}
|
|
||||||
|
|
||||||
Process {
|
|
||||||
id: launchProc
|
|
||||||
|
|
||||||
property DesktopEntry entry
|
|
||||||
|
|
||||||
command: ["app2unit", "--", `${entry?.id}.desktop`]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue