Unity Hub sandbox broken on Kubuntu 2024.04

So I’m developing on a Linux device (Kubuntu 24.04), and I downloaded and installed the Unity Hub as per the instructions on the website, but it would not open from the icon. Running it in the terminal yields:

$ unityhub
[6701:0802/164212.575149:FATAL:zygote_host_impl_linux.cc(127)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
Trace/breakpoint trap (core dumped)
133 $

(133 is the exit code.)
My system is fully updated via apt (updated just before this). I have been using --no-sandbox but would like a permanent solution. Is there a fix for this I’m missing at the OS level or is Unity on Linux just poorly supported? (I. e., is there anything I can do to fix this or just sit and hope Unity fixes it.)

make in .config/autostart unityhub.desktop entry with

[Desktop Entry]
Type=Application
Exec=unityhub --no-sandbox
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=UnityHub
Name=UnityHub
Comment[en_US]=
Comment=

Seams to be a Ubuntu specific problem. Apparently Ubuntu 24.04 comes with more restrictive Apparmor profiles and that is causing trouble for many Electron applications (which the Unity Hub is).

I didn’t encounter the problem myself since I’m not using Ubuntu, but I remember this:
https://gist.github.com/0xdeadbad/5ef3a38c8cf6efc264d9a6f11f50e5b8

Hope this helps.

thank you @ChiwTheNeko