Is this a new feature request?
Wanted change
Context
Currently, when we want to change the zoom level / DPI inside the container, the only way that works reliably is to restart the container with a different scaling factor.
This is a bit heavy !
What I tried
1. Using gsettings at runtime:
dpi=178
dpi_scaled=$((dpi * 1024))
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/Xft/DPI': <${dpi_scaled}>}"
But in the container I get:
No such schema “org.gnome.settings-daemon.plugins.xsettings”
(Docker...)
2. Using Firefox’s remote debugging protocol:
firefox --no-remote --profile /tmp/test --remote-debugging-port=9222
then connect via http://127.0.0.1:9222/json
With this approach we could modify layout.css.devPixelsPerPx, but it’s a hack compared to having native DPI/zoom support via gsettings.
Expected behavior
It should be possible to adjust zoom or DPI scaling at runtime, without restarting the container.
Reason for change
It should be possible to adjust zoom or DPI scaling at runtime, without restarting the container.
Proposed code change
No response
Is this a new feature request?
Wanted change
Context
Currently, when we want to change the zoom level / DPI inside the container, the only way that works reliably is to restart the container with a different scaling factor.
This is a bit heavy !
What I tried
1. Using gsettings at runtime:
dpi=178
dpi_scaled=$((dpi * 1024))
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/Xft/DPI': <${dpi_scaled}>}"
But in the container I get:
No such schema “org.gnome.settings-daemon.plugins.xsettings”
(Docker...)
firefox --no-remote --profile /tmp/test --remote-debugging-port=9222
then connect via http://127.0.0.1:9222/json
With this approach we could modify layout.css.devPixelsPerPx, but it’s a hack compared to having native DPI/zoom support via gsettings.
Expected behavior
It should be possible to adjust zoom or DPI scaling at runtime, without restarting the container.
Reason for change
It should be possible to adjust zoom or DPI scaling at runtime, without restarting the container.
Proposed code change
No response