# UI Scaling on Linux

**URL:** <https://forum.juce.com/t/ui-scaling-on-linux/65696>\
**Category:** Linux\
**Created:** [March 31, 2025, 12:36pm UTC](https://forum.juce.com/t/ui-scaling-on-linux/65696 "2025-03-31T12:36:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsheeler](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dsheeler/32/20479_2.png) [@dsheeler](https://forum.juce.com/u/dsheeler)\
**Post date:** [March 31, 2025, 12:36pm UTC](https://forum.juce.com/t/ui-scaling-on-linux/65696/1 "2025-03-31T12:36:19Z")

</div>

I am new to JUCE. I built the Projucer and found it was very small on my 4k display. I use GNOME. I dug into the source code and found a couple issues for my situation. Looking at getDisplayScale in juce\_XWindowSystem\_linux.cpp, first it tries to use xSettings which returns 1, but I don’t think GNOME uses that for scaling. So I put that at the end of the function instead of first. After checking xSettings, it then checked for an ubuntu specific setting using dconf, and if that failed, it would try gsettings for GNOME. However, the gsetting that it checks is not what I’m using to scale things which is the text-scaling-factor at /org/gnome/desktop/interface/text-scaling-factor in dconf. So I used dconf to read and return that value, and everything scales well for me.

I have a patch if you’d like me to submit a pull request with what I did.
