summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-12 21:10:29 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-12 21:10:29 +1000
commit178a63602530f44169ea740e4e1530a9a14212ea (patch)
tree004ef884e53d55391f45817bcc2c68024f39fb81
parentinternal: use execDetached for brightness (diff)
downloadcaelestia-shell-178a63602530f44169ea740e4e1530a9a14212ea.tar.gz
caelestia-shell-178a63602530f44169ea740e4e1530a9a14212ea.tar.bz2
caelestia-shell-178a63602530f44169ea740e4e1530a9a14212ea.zip
launcher: better launch terminal apps
Run with fish -C so colours get sourced
-rw-r--r--services/Apps.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/Apps.qml b/services/Apps.qml
index 546a6eb..49b48fe 100644
--- a/services/Apps.qml
+++ b/services/Apps.qml
@@ -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}`]);