-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Env Variables lost on genie -s #157
Comments
WSLg support was introduced in 1.38, improved in 1.39. (Or you can just add those variables to your clone-env setting, but that doesn't fix the issue with the specific location needed by the X socket, which is why I recommend upgrading to 1.39 instead.) |
Thank you - not sure why I missed it (I was pretty sure I run apt update && upgrade...) Already done it, but found out new failing services now. Should they they be masked or resolved differently?
|
Actually, no, this may be an issue with the manner in which WSLg can be conveniently supported. First, it raises a number of interesting questions, starting with some along the lines of "what's your regular user's uid?", "gdm?", and "why are there three user sessions all running at once, and is it intentional?" |
Most importantly, do you run any GUI applications under real-UIDs other than 1000? |
My regular uid is 1000. Nope - three sessions are not intentional - this fails right after starting WSL from regular (1000) user. |
I was meaning more in the sense that GDM (in the sense of the Gnome Display Manager and its handling of graphical logins) isn't supported under WSL/WSLg, so far as I know, because WSLg just projects individual Wayland/X11 applications and doesn't support running a full Gnome/etc. desktop. I'm guessing trying to fire up GDM is what's causing the issue, by virtue of spawning those extra user sessions under UIDs 123 and 0. I'm going to look at hacking a solution into genie's WSLg support to deal with different-UID user sessions just to be on the safe side, but my speculation right now is that disabling or uninstalling GDM will fix your issue. |
(Unless you don't have GDM installed, in which case, um. Well. Something's firing up those extra sessions, and I'm not sure what it might be. Time to go digging.) |
Thanks - will look later today what dependency installed GDM. Gonna let you know about results I am able to pin-point root cause. |
I think it was PHPStorm IDE, which required me to install such packages to work correctly:
Full info from apt history.log
|
Hm, looks like. Does the IDE still work if you uninstall gdm3? The other libraries and so forth should be fine. |
There'll also be a fix for other sessions trying to bind wslg/runtime-dir shipping in 1.40, later today. |
Yeap, it works after uninstalling gdm3. It's really messy that it's being installed while not required at all - thanks! |
Shiny. Thanks for letting me know. |
Windows version (build number):
21364
Linux distribution:
Ubuntu
Genie version:
1.36
Describe the bug
Windows introducted WSLG. After logging to genie -s bottle env variablesDISPLAY, WAYLAND_DISPLAY and PULSE_SERVER are being lost.
Expected behavior
Env variables should be still available.
Is there any workaround for that?
The text was updated successfully, but these errors were encountered: