Scaling issues with applications launched from terminal on Fedora 42 GNOME Wayland

Hello everyone!

I am using Fedora 42 Workstation with GNOME on Wayland. My display is 2880x1800 (16:10 aspect ratio) and I am using a 150% display scale.

The problem: When I open applications from the terminal, the UI scaling is extremely small and text is barely readable. This affects multiple applications including MATLAB, ROS2 Gazebo, or when plotting with matplotlib (I have to make the font very big to make it readable). Those are just examples - it happens for nearly all applications. The cursor is also small when in the application.

It is important to mention that some of the applications that I’m running are executed either from a server (to which I am connected to using ssh) or from an image. However, this also happens locally which makes me to believe it is a common issue.

What I’ve tried:

Set GNOME display scaling to 200% via gsettings set org.gnome.desktop.interface scaling-factor 2

Enabled fractional scaling with gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer', 'xwayland-native-scaling']"

Added those variables to my .zshrc

export GDK_SCALE=2
export GDK_DPI_SCALE=1
export QT_SCALE_FACTOR=1
export QT_AUTO_SCREEN_SCALE_FACTOR=0

The QT_SCALE_FACTOR was the only one that changed something. When set to 2 it made the text way too big, and when set to 1.5 it was still not big enough (and the text was blurry)

I also tried to find information online, but did not find a working solution.

Questions:

  • Is there a proper way to ensure terminal-launched applications inherit the system’s HiDPI settings on Wayland?
  • Has anyone successfully resolved similar issues on Fedora 42 with GNOME Wayland?

Below is an image that shows the scale of MATLAB compared to the scale of my terminal

This is run on the same GDK and QT settings as described above.

Thank you in advance, any help would be deeply appreciated!