Docker Community Forums

Share and learn in the Docker community.

Running GUI apps inside container in hidpi

(Fabiofranco) #1

It’s been over an year since I started to work entirely inside containers including GUI applications using -e DISPLAY=$DISPLAY -e XAUTHORITY=$HOME/.Xauthority -v /tmp/.X11-unix:/tmp/.X11-unix it worked like a charm so far.

Problem is I bought a new notebook with a 4K screen and now applications not based on GTK do NOT scale… so they are very small

Any ideas how to solve this?

(Exfalso) #2

Faced the same issue, what worked for me is mounting my host ~/.Xdefaults into the container, which contains

Xft.dpi: 192

Hope this helps!