5

I am seeking to up-scale a single application in Ubuntu 17.04, Gnome Shell 3.24.

In my concrete case, the motivation is unstable zoom functionality in Franz, but another reason could be older apps not designed for scaling to high resolution displays.

This answer from superuser suggests using this script to up-scale. The script, however, minimally allows up-scaling by a factor 2, which is far too much. The script also makes use of the xrandr package, which is deemed obsolete by apt-get.

Is there a hack that will allow me to up-scale a single application window to, say, 120% of the original?

  • I'm not able to install the script's dependencies at the moment, but I don't see why it wouldn't allow a scaling factor less than 2 – did you try /path/to/run_scaled --scale=1.2? What's the output of this? – dessert Oct 4 '17 at 12:26
  • I tried, but to no avail. I don't remember the output. I removed the required as it didn't work. – Rasmus Oct 20 '17 at 11:35
  • I concur with @dessert. The manual page of run_scaled reads: “--scale Sets the factor the application is scaled by. Fractional scales are supported. It is set to 2 by default.” If that’s not the case I recommend that you add the error message to your question and file a bug report on GitHub. – David Foerster Oct 21 '17 at 7:24
  • He, the commit on the help file mentioning fractional scaling was added 3 days after I posted this question. I'll give it another try. – Rasmus Oct 21 '17 at 8:23
  • 1
    @Rasmus I added an answer, please get back to me if it's not right on the mark – I'm glad we finally solved this! :) – dessert Oct 26 '17 at 13:25
1

The run_scaled script provides the following option:

--scale  Sets the factor the application is scaled by.
         Fractional scales are supported. It is set to 2 by default.

To change the scaling factor you need to run the script on the executable you wish to run scaled as e.g.

/path/to/run_scaled --scale=1.2 /path/to/application
| improve this answer | |
0

In Ubuntu 19.10, the following works for the application I now have in mind:

QT_SCALE_FACTOR=1.2 application

Possibly, one may also want to play around with the above in combination with QT_AUTO_SCREEN_SCALE_FACTOR=1 and QT_AUTO_SCREEN_SCALE_FACTOR=0.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.