From 5d210087ff4f2c4feeea3020395e5969d1f0bdeb Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 19 Jun 2025 16:18:39 +1000 Subject: apps: run exec directly if run with sh -c Avoid error notifications about unquoted characters --- services/Apps.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'services/Apps.qml') 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}`]); } } -- cgit v1.2.3-freya