mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-12 08:45:38 +02:00
✨ feat(server): Add Vulkan and Xwayland support (#6)
## Description **What(what issue does this code solve/what feature does it add):** We have no display server inside the container, nor Vulkan which will later be required by dxvk/d3d11/d3d12 in order to play games using Proton. **How(how does it solve it):** 1. We added vulkan and Xwayland packages into `server.Dockerfile` , then tested with running `vkcube` and `vulkaninfo` after running an interactive bash shell inside the container. ## Required Checklist: - [ ] I have added any necessary documentation and comments in my code (where appropriate) - [ ] I have added tests to make sure my code runs in all contexts ## Further comments
This commit is contained in:
13
.dev/x11.sh
Normal file
13
.dev/x11.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#This fixes the error where x11-apps in docker cannot seem to access the hosts DISPLAY server
|
||||
# Error: No protocol specified
|
||||
# Error: Can't open display: :10.0
|
||||
#https://askubuntu.com/a/1470341 //Run it on host OS
|
||||
xhost +Local:*
|
||||
xhost
|
||||
|
||||
#Fun fact Weston won't run if you do not have Wayland running on the host (i have yet to try running with Xwayland inside the container)
|
||||
#Run weston using your host's X11 display server
|
||||
weston --backend=x11-backend.so
|
||||
|
||||
#Run inside the terminal of the weston you just created... cool right?
|
||||
weston --backend=wayland-backend.so
|
||||
Reference in New Issue
Block a user