diff --git a/services/Apps.qml b/services/Apps.qml index 90ef3026..51232f31 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}`]); } }