Ubuntu – Scaling applications on a HiDPI desktop

displayscalingunity

I am using a laptop with a HiDPI screen. Everything scales except for two apps. One seems to be GTK2 based and the other Qt5 based but where all the libraries it uses comes in the package (Viber for Linux. Both of them are basically useless since I can't see the written characters since they are too small. Is there anything I can do to get these two applications to scale like all my other applications do? I'm running straight Ubuntu 16.04 x64.

Best Answer

Try to invoke (run console by hitting shortcut Ctrl+Alt+t)

export QT_SCALE_FACTOR=2

or

export QT_AUTO_SCREEN_SCALE_FACTOR=2

command before starting your application.

For me it works for some applications like Viber.