diff options
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}`]); } } |