mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-13 13:53:28 +01:00
Switching to Wayland #292
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @iMonZ on GitHub (Dec 14, 2021).
Is it possible to support wayland? Since X11 is nearly dead maybe it has a year or so until the final grave.
And xwayland isn’t a very good experience so a native Wayland solution would be insane!
thanks!
@sickcodes commented on GitHub (Dec 15, 2021):
Good idea I just tried it and it's smooth as butter!
Thank you for bringing this up!!
Terminal 1:
wayfireTerminal 2:
https://user-images.githubusercontent.com/65906298/146274213-2195f541-cf10-4c7e-b4aa-5ffd54baf337.mp4
https://user-images.githubusercontent.com/65906298/146272994-106c1425-9cc9-4858-913d-098df227fd0a.mp4
@iMonZ commented on GitHub (Jan 3, 2022):
Great thanks! But you need WAYLAND_DISPLAY instead of DISPLAY.
@iMonZ commented on GitHub (Jan 4, 2022):
Could you add Wayland to the readme tutorial? This would be really nice!
@Julioevm commented on GitHub (Mar 10, 2022):
Hey, I use Fedora 35 which defaults to wayland and Im having issues with GTK initialization that I suspect could come from using WAYLAND, as otherwise I've followed the steps. Could you share the command you use to start it with wayland? I tried to change DISPLAY for WAYLAND_DISPLAY without luck.
I can make it work through VNC for now tough. Thanks!
@sickcodes commented on GitHub (Mar 11, 2022):
these variables may help:
or
-e WAYLAND_DISPLAY=wayland-1for testing purposes only, can you set
/run/user/1000to chmod 777, and then when you're finished change it back to 700.If that works, Ill add the chown to the Dockerfile and support wayland naturally :)
@boredland commented on GitHub (May 22, 2022):
I can confirm this did the trick for me! 🥳
@iMonZ commented on GitHub (May 22, 2022):
So this two lines can be removed:
-v /tmp/.X11-unix:/tmp/.X11-unix
-e "DISPLAY=${DISPLAY:-:0.0}" \
?
@gotjoshua commented on GitHub (Oct 9, 2022):
@sickcodes i think that this helped for me, but there a couple confounding factors i'm trying to suss out.
this comment was mega helpful:
https://github.com/sickcodes/Docker-OSX/issues/419#issuecomment-1011401905
most important was to properly mount my /run/user folder
$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY:/tmp/$WAYLAND_DISPLAYthen for permissions i needed to:
i use docker-compose (nearly religiously) so here is my yml
install is underway!

@mroyme commented on GitHub (Nov 30, 2022):
I used your docker-compose file and turns out the crucial part was running:
I can rule out a few factors:
chmod 700 /run/user/1000 # $XDG_RUNTIME_DIR.I tested with Mac OS Ventura by adding these two environment variables as mentioned in the readme:
@nktnet1 commented on GitHub (Aug 4, 2024):
On Arch Linux, Hyprland, using podman-compose.
Can confirm that after running
and, in a directory containing the
docker-compose.yamlbelow (note the prefixdocker.io/in the image)Running
works as expected.