Skip to content
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

add workaround for wslg support #7218

Open
nexplorer-3e opened this issue Jul 22, 2024 · 3 comments
Open

add workaround for wslg support #7218

nexplorer-3e opened this issue Jul 22, 2024 · 3 comments
Assignees
Labels
bug Topic/issue involves a bug

Comments

@nexplorer-3e
Copy link
Contributor

nexplorer-3e commented Jul 22, 2024

Bug description

see https:/viruscamp/wslg-links?tab=readme-ov-file#why
as AOSC looks like using the newer systemd version, the wslg files are missing, cause wayland and x11 application to fail.

Steps to reproduce

eglinfo -B:

Wayland platform:
eglinfo: eglInitialize failed

X11 platform:
(not responding)

after manually create symlink (ln -sf /mnt/wslg/.X11-unix/* /tmp/.X11-unix/ && ln -sf /mnt/wslg/runtime-dir/wayland-* $XDG_RUNTIME_DIR/):
(yes maybe need to hack env to disable zink warning)

Wayland platform:
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Microsoft Corporation
OpenGL core profile renderer: D3D12 (Intel(R) Iris(R) Xe Graphics)
OpenGL core profile version: 4.1 (Core Profile) Mesa 24.0.7
OpenGL core profile shading language version: 4.10
OpenGL compatibility profile vendor: Microsoft Corporation
OpenGL compatibility profile renderer: D3D12 (Intel(R) Iris(R) Xe Graphics)
OpenGL compatibility profile version: 4.1 (Compatibility Profile) Mesa 24.0.7
OpenGL compatibility profile shading language version: 4.10
OpenGL ES profile vendor: Microsoft Corporation
OpenGL ES profile renderer: D3D12 (Intel(R) Iris(R) Xe Graphics)
OpenGL ES profile version: OpenGL ES 3.0 Mesa 24.0.7
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.00

X11 platform:
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES
OpenGL core profile vendor: Microsoft Corporation
OpenGL core profile renderer: D3D12 (Intel(R) Iris(R) Xe Graphics)
OpenGL core profile version: 4.1 (Core Profile) Mesa 24.0.7
OpenGL core profile shading language version: 4.10
OpenGL compatibility profile vendor: Microsoft Corporation
OpenGL compatibility profile renderer: D3D12 (Intel(R) Iris(R) Xe Graphics)
OpenGL compatibility profile version: 4.1 (Compatibility Profile) Mesa 24.0.7
OpenGL compatibility profile shading language version: 4.10
OpenGL ES profile vendor: Microsoft Corporation
OpenGL ES profile renderer: D3D12 (Intel(R) Iris(R) Xe Graphics)
OpenGL ES profile version: OpenGL ES 3.0 Mesa 24.0.7
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.00

Update channel(s)

main

Package and version

No response

@KexyBiscuit KexyBiscuit self-assigned this Jul 22, 2024
@KexyBiscuit KexyBiscuit added the bug Topic/issue involves a bug label Jul 22, 2024
@KexyBiscuit
Copy link
Member

Related: microsoft/wslg#1156

@nexplorer-3e
Copy link
Contributor Author

related: microsoft/wslg#1244

@nexplorer-3e
Copy link
Contributor Author

nexplorer-3e commented Aug 16, 2024

related: microsoft/wslg#1244

currently I use the workaround provided by https:/viruscamp/wslg-links : place wslg-runtime-dir.services under /etc/systemd/user and activate it with systemctl --global to support multi-user. As for x11 service, simply put under /etc/systemd/system (administrator-controlled directory) should enough. Reason why not using tmpfiles is that it won't check whether the source exists, causing unexpected behavior on non-WSL environments, while the service files containing patch checks.
edit: other oneshot command like mount --makeslave?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Topic/issue involves a bug
Projects
None yet
Development

No branches or pull requests

2 participants