Commit Graph

23 Commits

Author SHA1 Message Date
Daniel unbrot Pätzold 84527d6384 client_software cosmetic changes 2026-05-08 12:07:54 +02:00
Daniel unbrot Pätzold 87ac49ce41 0110_nextcloud_talk_app: restore D-Bus and KWallet access via flatpak override
Ensures session bus socket and kwalletd5/6 talk permissions are set at
logon, so Flatseal or a missing manifest entry cannot silently break
Talk's credential storage and Plasma integration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 10:59:53 +02:00
Brot der Bot 0c50f7825d 0110_nextcloud_talk_app: fix Electron GPU crash on service exit
--scope ... & had two problems:
1. systemd-run stayed alive in the autostart service cgroup;
   KillMode=control-group sent it SIGTERM when logon_script.sh exited,
   tearing down the scope and killing Talk mid-initialization.
2. The scope lacked Delegate=yes, preventing Electron's zygote from
   creating sub-cgroups for the GPU/renderer processes.

The previous commit added Delegate=yes but kept --scope, so problem 1
remained: the scope was still torn down on service exit, causing the
GPU/network service crash visible in talk.log.

Switch to a transient service unit identical to the Nextcloud Desktop
Client fix: --no-block returns immediately so systemd-run is gone from
the cgroup before the service ends; --property=Delegate=yes is retained
for Electron's zygote. Tested: service active, zygote and network
service running, no GPU crash.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 17:23:49 +02:00
Brot der Bot 93418748d7 0110_nextcloud_talk_app: add Delegate=yes to fix Electron GPU crash
Nextcloud Talk is an Electron app. Electron uses a zygote process to
fork sandboxed child processes (GPU, renderer, network service) into
their own sub-cgroups. systemd-run --scope without Delegate=yes locks
down the cgroup — sub-cgroups cannot be created — so the zygote fails,
causing the GPU process to crash immediately on startup.

Adding --property=Delegate=yes hands cgroup management to the scope,
allowing flatpak/bubblewrap and Electron's zygote to create the
sub-cgroups they need. Tested: no GPU crash with this flag set.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 16:57:03 +02:00
Brot der Bot e246c1f875 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>
2026-05-01 16:33:17 +02:00
unbrot 7514b7cbe3 Talk: setsid won't work with Quotes 2026-04-25 14:48:09 +02:00
unbrot 7b6f7c8ea8 Talk: Set exitcode 2026-04-25 14:38:27 +02:00
unbrot 72faa4d0f2 Talk: Add Background back again 2026-04-25 14:31:42 +02:00
unbrot 7ef83c5846 Talk: Fork in Background with bash 2026-04-25 14:27:46 +02:00
unbrot 4947599bb3 Talk: Stop before upgrade 2026-04-25 14:09:49 +02:00
unbrot c5e4cc1d12 talk: always fork new process 2026-04-25 13:52:46 +02:00
unbrot 398354028a Talk: call fixed in Background 2026-04-25 13:47:07 +02:00
Daniel Pätzold 514b1b1e19 Background start: Replace NOHUP with SETSID, which is working more relyable 2026-04-14 23:06:25 +02:00
Daniel Pätzold 6bf39ef5f4 Talk: Wait before shell get closed 2026-04-13 22:19:14 +02:00
Daniel Pätzold f0e8257eeb NC Talk: Added logfile for debugging 2026-04-09 14:18:42 +02:00
Daniel Pätzold e7b1f3754a Talk: Fixed startup 2026-04-08 18:30:57 +02:00
Daniel Pätzold b35a5148a3 Talk: temp. disable start of talk due to coredumps 2026-04-08 14:53:08 +02:00
Daniel Pätzold d482c47b85 Talk: Remove old userspace and new user_run script 2026-04-01 17:15:12 +02:00
Daniel Pätzold 0e4eadbef3 Add user_run scripts for non root tasks 2026-04-01 00:41:24 +02:00
Daniel Pätzold 578c9861e8 Talk: Start with full path 2026-03-31 23:20:03 +02:00
Daniel Pätzold ceff9b1478 Talk: Fixed start / not as userinstall 2026-03-31 23:16:51 +02:00
Daniel Pätzold 51481cd022 Nextcloud Talk: Add Autostart 2026-03-31 19:52:06 +02:00
Daniel Pätzold 488f04d387 Moved local dir to /opt/sys_config
Improved error logging and added function handling calls with log and return values
Improved check for matching sudo rule
2026-03-15 12:44:14 +01:00