diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-19 16:18:39 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-19 16:18:39 +1000 |
| commit | 5d210087ff4f2c4feeea3020395e5969d1f0bdeb (patch) | |
| tree | ac44db545a2215d38509eb36c022ff14efed2fea /services/Apps.qml | |
| parent | brightness: add desc for shortcuts (diff) | |
| download | caelestia-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
Diffstat (limited to 'services/Apps.qml')
| -rw-r--r-- | services/Apps.qml | 5 |
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}`]); } } |