Thank you for sharing, but there are better solutions recommended on GitHub linked in th topic I linked above. I should have closed this topic as the other is about the same problem on the same OS, so I close it now.
I haven’t tried as I don’t have Ubuntu 24.04 desktop installed anywhere yet, but if those solutions are working, hopefully it will be mentioned in the documentation instead of completely disabling a security feature.