[GH-ISSUE #1212] feature request, 'xephyr-extra-params -dpi' option #829

Closed
opened 2026-05-05 06:56:25 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @gso on GitHub (Apr 12, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1212

Xephyr by the looks is unable to determine DPI, defaulting to 75 dpi, the result being not all but some applications render text in a smaller font than with the correct DPI setting (openbox by way of an example). The X Server -dpi option fixes this. At a cursory glance it's not possible to set this from within a Xephyr display (gamma setting issue). A 'xephyr-extra-params' setting would be useful:

-dpi resolution
sets the resolution for all screens, in dots per inch. To be used when the server cannot determine the screen size(s) from the hardware.

[Edit] The command to determine the DPI of a display: xdpyinfo |grep -B2 resolution

Originally created by @gso on GitHub (Apr 12, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1212 `Xephyr` by the looks is unable to determine DPI, defaulting to 75 dpi, the result being not all but some applications render text in a smaller font than with the correct DPI setting (`openbox` by way of an example). The [X Server `-dpi` option](https://www.x.org/archive/X11R6.8.0/doc/Xserver.1.html) fixes this. At a cursory glance it's not possible to set this from within a `Xephyr` display (gamma setting issue). A 'xephyr-extra-params' setting would be useful: > -dpi resolution > sets the resolution for all screens, in dots per inch. To be used when the server cannot determine the screen size(s) from the hardware. [Edit] The command to determine the [DPI of a display](https://wiki.archlinux.org/index.php/xorg#Display_size_and_DPI): `xdpyinfo |grep -B2 resolution`
gitea-mirror 2026-05-05 06:56:25 -06:00
Author
Owner

@netblue30 commented on GitHub (Apr 12, 2017):

I'll put a fix in for the next release, thanks.

<!-- gh-comment-id:293628053 --> @netblue30 commented on GitHub (Apr 12, 2017): I'll put a fix in for the next release, thanks.
Author
Owner

@netblue30 commented on GitHub (May 10, 2017):

Support is on mainline. Go in /etc/firejail/firejail.config and add an xpra-extra-params statement - there is a dpi example in that file but is commented out. Let me know if you run into problems.

<!-- gh-comment-id:300640837 --> @netblue30 commented on GitHub (May 10, 2017): Support is on mainline. Go in /etc/firejail/firejail.config and add an xpra-extra-params statement - there is a dpi example in that file but is commented out. Let me know if you run into problems.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#829
No description provided.