When running the installer one is asked to enter password for sudo graphically. After authentication no more graphical dialogs are shown. The tlinstaller process is still running and a strace shows hang on 'read(0,'. Both seen on Samuels and Henriks desktops and we are running wayland. No XAUTHORITY in environment and after running 'xhost +' the problem is solved.
This is what the terminal says: > $ sudo ./install-server > [sudo] password for samuel: > No protocol specified > /usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display > warnings.warn(str(e), _gtk.Warning) > No protocol specified > Could not start PyGTK. Using text mode fallback...
https://bugzilla.redhat.com/show_bug.cgi?id=1274451 ..?
Fun. I guess it is time for another rewrite of tl-setup then. :)
(In reply to comment #2) > https://bugzilla.redhat.com/show_bug.cgi?id=1274451 ..? The short summary is that running graphical applications as root is now forbidden. The suggested approach is some front-end/back-end solution, ideally using PolicyKit.
We'll do a platform specific note before release with a suggested workaround. Then we'll move this bug to Next for finding an automatic workaround that forces text mode. After that we'll have to have a new discussion on where to go from there and when.
Platform specific note added. Moving to Next. (Note to self: fix list of bugs in release notes.)
Platform Specific Note looks good, workaround works.
This also affects RHEL now as they also have Wayland by default.
This blog post claims they have backtracked a bit and are working on allowing root process access to Xwayland at least: https://blogs.gnome.org/uraeus/2019/06/24/on-the-road-to-fedora-workstation-31/
This issue is more general than just Wayland. The issue is that Xwayland is configured in a very restrictive way, something that is fully possible with any modern X server. So we should detect and work around that, not do anything Wayland specific. This bug is also about getting something working (e.g. text mode) and not getting full functionality. Bug 7358 has been created to fix this fully.
We're now properly falling back to text mode when we cannot find an xauth cookie. That should hopefully map nicely to the cases we're having problems with.
Works well, release note looks good. Verified the problem when running "tl-4.10.0-server/install-server" (Note: without 'sudo') and verified the fix when running "nightly/server-bundle/install-server". Tested on Fedora 30 with Wayland.
We have to remember to remove the Platform Specific Note on release as well.