forked from obel1x/fedora-OEMDRV
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user