summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-19 16:18:39 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-19 16:18:39 +1000
commit5d210087ff4f2c4feeea3020395e5969d1f0bdeb (patch)
treeac44db545a2215d38509eb36c022ff14efed2fea
parentbrightness: add desc for shortcuts (diff)
downloadcaelestia-shell-5d210087ff4f2c4feeea3020395e5969d1f0bdeb.tar.gz
caelestia-shell-5d210087ff4f2c4feeea3020395e5969d1f0bdeb.tar.bz2
caelestia-shell-5d210087ff4f2c4feeea3020395e5969d1f0bdeb.zip
apps: run exec directly if run with sh -c
Avoid error notifications about unquoted characters
-rw-r--r--services/Apps.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/Apps.qml b/services/Apps.qml
index 90ef302..51232f3 100644
--- a/services/Apps.qml
+++ b/services/Apps.qml
@@ -22,6 +22,9 @@ Singleton {
}
function launch(entry: DesktopEntry): void {
- Quickshell.execDetached(["sh", "-c", `app2unit -- '${entry.id}.desktop' || app2unit -- ${entry.execString}`]);
+ if (entry.execString.startsWith("sh -c"))
+ Quickshell.execDetached(["app2unit", "--", entry.execString]);
+ else
+ Quickshell.execDetached(["sh", "-c", `app2unit -- '${entry.id}.desktop' || app2unit -- ${entry.execString}`]);
}
}