apps: run exec directly if run with sh -c

Avoid error notifications about unquoted characters
This commit is contained in:
2 * r + 2 * t 2025-06-19 16:18:39 +10:00
parent e928b96a95
commit 5d210087ff

View file

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