forked from obel1x/fedora-OEMDRV
e246c1f875
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>
15 lines
539 B
Bash
Executable File
15 lines
539 B
Bash
Executable File
#!/bin/bash
|
|
#Deinstall wrong installed userspace app
|
|
/usr/bin/flatpak list --user | grep com.nextcloud.talk
|
|
if [[ $? -eq 0 ]]; then
|
|
/usr/bin/flatpak uninstall -y --user com.nextcloud.talk
|
|
fi
|
|
|
|
# Start Nextcloud Talk in Background
|
|
#Current Version of Talk is dumping Core
|
|
echo "Starting Nextcloud Talk in Background."
|
|
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
|