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 <noreply@anthropic.com>
This commit is contained in:
Brot der Bot
2026-05-01 16:33:17 +02:00
parent 3964f8b081
commit e246c1f875
@@ -8,6 +8,7 @@ fi
# Start Nextcloud Talk in Background # Start Nextcloud Talk in Background
#Current Version of Talk is dumping Core #Current Version of Talk is dumping Core
echo "Starting Nextcloud Talk in Background." 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 exit 0