fix: 将host-spawn替换为systemd-run --user以提升兼容性

This commit is contained in:
2026-04-12 21:01:33 +08:00
parent 71db2f2b71
commit c46bb03e3f
3 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ function launch_app() {
# 提取并净化Exec命令
exec_command=$(grep -m1 '^Exec=' "$DESKTOP_FILE_PATH" | cut -d= -f2- | sed 's/%.//g')
[ -z "$exec_command" ] && return 1
[ ! -z "$IS_ACE_ENV" ] && HOST_PREFIX="host-spawn"
[ ! -z "$IS_ACE_ENV" ] && HOST_PREFIX="systemd-run --user"
exec_command="${HOST_PREFIX} $exec_command"
log.info "Launching: $exec_command"
${SHELL:-bash} -c " $exec_command" &