Open johnyc90 opened 9 months ago
I guess pynput requires an X server (or xwayland) to be running. I'll see if that can possibly be made optional
Apparently pyinput should work under wayland. But the build_linux.sh and build_linux_debug.sh files point to hidden-imports of _xorg files:
--hidden-import "pynput.keyboard._xorg" \ --hidden-import "pynput.mouse._xorg" \ --hidden-import "python-xlib" \
Is it possible that the linux version is explicitly using the xorg versions of those dependencies instead of a platform agnostic version?
The packager needs to use these hidden imports because they aren't static, so pyinstaller cannot track them. see here: https://github.com/moses-palmer/pynput/issues/312
and during importing, pynput uses this function, where in the highlighted text, specifies which modules to use:
And I think a fully platform agnostic version is impossible because it needs different methods of collecting keystrokes for different oses. pynput.keyboard
's version of platform agnostic is selecting the correct backend during runtime
The XLib import seems to have been added actually for Fedora... not sure why though
After doing some digging I built it myself at home and I got a functioning version of the launcher. I suppose it may be related to the build environment. One thing I noticed is that while installing the dependencies through pdm, the installation of evdev (the pynput dependency that is used to solve wayland compatibility) fails to install. This was due to missing the required distro's python development package (python3.10-devel in my case since 3.10 is the python version i'm using). After that everything went smooth. There was a separate bug that issued, with python complaining about unexpected floats, but I'll make a separate issue for that.
strange, i thought i fixed that last thing. Could you be more specific?
Oh! you fixed it on commit c2ed6488c4c38b6586d17efd2bfd38460667bff1.
ok, now I'm curious, does the global hotkeys actually work for you on Wayland with the custom build? it has never worked for me on Wayland. I always assumed it was because of the security stuff regarding Wayland
Describe the bug Blender launcher is not lauching on Fedora systems under gnoe wayland. Running it through the terminal yields the following messages:
To Reproduce Steps to reproduce the behavior:
Expected behavior For Blender Laucher to run.
System (please complete the following information):
Additional context This problem had been reported on Dotbow's repo previously. This is sure to happen on Fedora versions newer than 36 unsing gnome and wayland, but other people have had this same problem under other OSs. This seemed to be related to how Gnome versions 43 where using GTK4 toolkit under wayland or something like this, so I think that anything running Gnome 43 and over under wayland might display the issue.