launcher: better launch terminal apps
Run with fish -C so colours get sourced
This commit is contained in:
parent
5dafbf5d21
commit
178a636025
1 changed files with 3 additions and 1 deletions
|
|
@ -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}`]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue