From e246c1f87550020dc49584bed2dae4140167b003 Mon Sep 17 00:00:00 2001 From: Brot der Bot Date: Fri, 1 May 2026 16:33:17 +0200 Subject: [PATCH] 0110_nextcloud_talk_app: detach Talk from autostart service cgroup setsid -f forks the process into a new session but leaves it in the calling service's cgroup. systemd-run --user --scope moves it into its own transient scope cgroup so the autostart service can finish normally. Added & to background the launch, replacing the fork that setsid -f was providing. Tested: scope is created and Talk starts correctly. Co-Authored-By: Claude Sonnet 4.6 --- client_software/0110_nextcloud_talk_app/user_run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client_software/0110_nextcloud_talk_app/user_run.sh b/client_software/0110_nextcloud_talk_app/user_run.sh index 145037b..f61f476 100755 --- a/client_software/0110_nextcloud_talk_app/user_run.sh +++ b/client_software/0110_nextcloud_talk_app/user_run.sh @@ -8,6 +8,7 @@ fi # Start Nextcloud Talk in Background #Current Version of Talk is dumping Core echo "Starting Nextcloud Talk in Background." -/usr/bin/setsid -f /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk --background >${TEMPDIR}/talk.log 2>&1 +systemd-run --user --scope --unit=nextcloud-talk \ + /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=electron-wrapper --file-forwarding com.nextcloud.talk --background >${TEMPDIR}/talk.log 2>&1 & exit 0