launcher: fix opening apps

Run exec string when proc app2unit fails
This commit is contained in:
2 * r + 2 * t 2025-06-18 23:07:22 +10:00
parent a274a8548e
commit 620ff52f75

View file

@ -2,7 +2,6 @@ pragma Singleton
import "root:/utils/scripts/fuzzysort.js" as Fuzzy
import Quickshell
import Quickshell.Io
Singleton {
id: root
@ -23,15 +22,6 @@ Singleton {
}
function launch(entry: DesktopEntry): void {
launchProc.entry = entry;
launchProc.startDetached();
}
Process {
id: launchProc
property DesktopEntry entry
command: ["app2unit", "--", `${entry?.id}.desktop`]
Quickshell.execDetached(["sh", "-c", `app2unit -- '${entry.id}.desktop' || app2unit -- ${entry.execString}`]);
}
}