fix: start elephant as systemd service (#3405)

This commit is contained in:
Andrej Benz
2025-11-17 09:51:12 +01:00
committed by GitHub
parent e1745d7ff9
commit c17bd85c38
4 changed files with 17 additions and 7 deletions

View File

@@ -12,11 +12,10 @@ if [[ $EUID -eq 0 ]]; then
# Restart services as the script owner
systemd-run --uid="$SCRIPT_OWNER" --setenv=XDG_RUNTIME_DIR="/run/user/$USER_UID" \
bash -c "
setsid uwsm-app -- elephant &
setsid uwsm-app -- walker --gapplication-service &
systemctl --user restart elephant.service
systemctl --user restart app-walker@autostart.service
"
else
setsid uwsm-app -- elephant &
wait 2
setsid uwsm-app -- walker --gapplication-service &
systemctl --user restart elephant.service
systemctl --user restart app-walker@autostart.service
fi