diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-19 15:52:31 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-07-19 15:52:31 +1000 |
| commit | 5455cc3af5ec62cf1282d5034b113077f6d3eb93 (patch) | |
| tree | e370f728059f7e4ac45f444e7be44d31f6ecf4b0 /services | |
| parent | internal: clean up tray item (diff) | |
| download | caelestia-shell-5455cc3af5ec62cf1282d5034b113077f6d3eb93.tar.gz caelestia-shell-5455cc3af5ec62cf1282d5034b113077f6d3eb93.tar.bz2 caelestia-shell-5455cc3af5ec62cf1282d5034b113077f6d3eb93.zip | |
launcher: better app launch
More foolproof (hopefully)
Also set working directory correctly
Diffstat (limited to 'services')
| -rw-r--r-- | services/Apps.qml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/services/Apps.qml b/services/Apps.qml index e2addcd..d561d15 100644 --- a/services/Apps.qml +++ b/services/Apps.qml @@ -12,10 +12,14 @@ Searcher { function launch(entry: DesktopEntry): void { if (entry.runInTerminal) - Quickshell.execDetached(["app2unit", "--", "foot", "fish", "-C", entry.execString]); - else if (entry.execString.startsWith("sh -c")) - Quickshell.execDetached(["sh", "-c", `app2unit -- ${entry.execString}`]); + Quickshell.execDetached({ + command: ["app2unit", "--", "foot", `${Quickshell.configDir}/assets/wrap_term_launch.sh`, ...entry.command], + workingDirectory: entry.workingDirectory + }); else - Quickshell.execDetached(["sh", "-c", `app2unit -- '${entry.id}.desktop' || app2unit -- ${entry.execString}`]); + Quickshell.execDetached({ + command: ["app2unit", "--", ...entry.command], + workingDirectory: entry.workingDirectory + }); } } |