launcher: better launch terminal apps

Run with fish -C so colours get sourced
This commit is contained in:
2 * r + 2 * t 2025-07-12 21:10:29 +10:00
parent 5dafbf5d21
commit 178a636025

View file

@ -22,7 +22,9 @@ Singleton {
}
function launch(entry: DesktopEntry): void {
if (entry.execString.startsWith("sh -c"))
if (entry.runInTerminal)
Quickshell.execDetached(["app2unit", "--", "foot", "fish", "-C", entry.execString]);
else if (entry.execString.startsWith("sh -c"))
Quickshell.execDetached(["sh", "-c", `app2unit -- ${entry.execString}`]);
else
Quickshell.execDetached(["sh", "-c", `app2unit -- '${entry.id}.desktop' || app2unit -- ${entry.execString}`]);