-
-
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
X applications are broken after running Genie #251
Comments
Are you using WSLg or a third-party X server? |
Sorry I omitted this part. I forgot about third-parties. Anyway, I'm using WSLg :) |
Okay. There's a couple of things to check here. First is the existence of the What I'm currently expecting to see is that the former does not exist, but the second does. In which case... Here's the thing. WSLg works on standard WSL by symlinking the Check that both of these (or just the .socket if no X applications have run yet) are in the active (running) state with (Also, I note that you're getting the error message telling you that your default systemd target isn't multi-user.target . Try fixing this and shutting down/restarting WSL first , before doing any of the above. default.target usually drags in other stuff including distro-native display-type services which could be breaking things, which is why, per error, only multi-user.target is supported.) |
So I followed the steps given by you. The default target has been set to
and
Doing |
Looks to me that it's related to #161 Based on the respective issue I followed the following commands. The output of the command Systemd version is:
|
I forgot where I backed up the original wsl2 kernel so I had to compile it once again. After compilation Totally related to microsoft/WSL#6911 If there's nothing else you can close this issue and my previous issue related to Atom since it also got fixed after using the default microsoft kernel |
I'm not using wslg together with genie so I did not discover this but I have the same issue with a custom kernel not following the required naming. I am wondering if it would not be more fail-proof if genie checks in the beginning if the link exists and recreates it if so. (I see no downside doing so though the other way is of course more beautiful.) Since wslg is working despite the wsl detection based on the kernel string it's somehow a limitation imposed by genie. |
The problem is ordering. genie execs Recreating it before this point is useless, obviously. Afterwards, it needs to be done with a systemd service (as the current release does), at which point the link is (probably) already gone, and you need to check that you actually are running inside WSL, hence the ConditionVirtualization. Technically, I suppose, one could just detect that the target of the link exists under So I think it is best, at least for now, to stick to the generally accepted method of WSL detection. I will document the constraint on custom kernel naming more visibly. |
Windows version (build number):
22000.556
Linux distribution:
= Bookworm
Genie version:
genie 2.2
Describe the bug
Again something else's breaking for me after I run the bottle.
X applications don't work anymore (xeyes, xhost). They just show an
Error: Can't open display: :0
.Tried some solutions I've found on internet. One of them was using the
nameserver
from/etc/resolv.conf
which it made the error go away but thexeyes
process gets stuck. Probably displaying somewhere else?Confirm that you are running inside the bottle:
Happens after the bottle is ran, even after it's closed (not shutdown).
To Reproduce
xeyes
:apt-get install x11-apps
xeyes
wait a few good seconds. Make sure the application window has been displayed.genie -s
Expected behavior
An window with 2 eyes should show up (see screenshot)
Screenshots
I confirm that I have read the ENTIRE supplied readme file and checked for relevant information on the repository wiki before raising this issue, and that if the solution to this issue is found in either location, it will be closed without further comment:
The text was updated successfully, but these errors were encountered: