stremio-shell icon indicating copy to clipboard operation
stremio-shell copied to clipboard

Stremio doesn't honor OS scale setting (Ubuntu 20.04 / HiDPI)

Open santiagofn opened this issue 5 years ago • 14 comments

OS: Ubuntu 20.04.1 LTS (64-bit) Hardware: Dell XPS 13 2016 (9350)

My notebook has HiDPI, so my resolution is large (3200 x 1800) and I need to set Ubuntu scale to 200%:

However, Stremio doesn't respect that scale setting. Fonts and images look really small: before

I had to manually add QT_AUTO_SCREEN_SCALE_FACTOR=1 to the desktop entry for the app scale to behave properly. Only then fonts / icons look OK: after

santiagofn avatar Aug 25 '20 01:08 santiagofn

same problem, using it on a tv on ubuntu is eye stretching

rijnhard avatar Sep 24 '20 18:09 rijnhard

Related https://github.com/Stremio/stremio-shell/issues/131

rijnhard avatar Sep 24 '20 18:09 rijnhard

cant tell you how much this sucks running stremio on an HTPC.

rijnhard avatar Mar 23 '21 10:03 rijnhard

Found this issue when looking for a solution to have Stremio scaling to HiDPI. While still looking about this, I saw that Stremio moved from Electron to QT in version 4.0. Found in HiDPI ArchWiki the following environment variable that I added it to my ~/.bashrc and it solved the issue for me.

export QT_AUTO_SCREEN_SCALE_FACTOR=1

EricsonMacedo avatar Dec 14 '21 12:12 EricsonMacedo

thanks @EricsonMacedo

joorgelm avatar Jun 17 '22 21:06 joorgelm

Do these workarounds apply also to flatpak version of the app? Seem not to work.

DanyGee avatar Sep 14 '22 06:09 DanyGee

Do these workarounds apply also to flatpak version of the app? Seem not to work.

@DanyGee After my initial comment I tried it with flatpak with no luck. I took some time to read about flatpak applications and how they are isolated and I believe that I found a fix for the flatpak application as well.

For Stremio flatpak application

  1. Set the environment variable for Stremio flatpak using the override command:
sudo flatpak override --env=QT_AUTO_SCREEN_SCALE_FACTOR=1 com.stremio.Stremio
  1. Make sure there is no Stremio flatpak application running in the background:
flatpak kill com.stremio.Stremio
  1. Try to open through the Stremio.desktop launcher or using the flatpak run command:
flatpak run com.stremio.Stremio

EricsonMacedo avatar Sep 17 '22 10:09 EricsonMacedo

Do these workarounds apply also to flatpak version of the app? Seem not to work.

@DanyGee After my initial comment I tried it with flatpak with no luck. I took some time to read about flatpak applications and how they are isolated and I believe that I found a fix for the flatpak application as well.

For Stremio flatpak application

  1. Set the environment variable for Stremio flatpak using the override command:
sudo flatpak override --env=QT_AUTO_SCREEN_SCALE_FACTOR=1 com.stremio.Stremio
  1. Make sure there is no Stremio flatpak application running in the background:
flatpak kill com.stremio.Stremio
  1. Try to open through the Stremio.desktop launcher or using the flatpak run command:
flatpak run com.stremio.Stremio

Thanks dude. It's much better, but I wonder why the info pane on the right is so huge. In Windows it's good size, but also allows another row and column to populate.

joebishop avatar Oct 17 '22 17:10 joebishop

Doesn't seem to work anymore with the new UI.

Atleast for me has no effect, and attempting to force a scaling factor via QT_SCALE_FACTOR doubles the size of the window instead of just the apps contents.

rijnhard avatar Oct 11 '23 17:10 rijnhard

Also when in flatpak with ubuntu 20.04.3 & gnome it should be respecting the OS hidpi settings by default just like other KDE/QT flatpaks do (like VLC)

rijnhard avatar Oct 11 '23 17:10 rijnhard

same issue here :(

patrontheo avatar Mar 27 '24 19:03 patrontheo

This env var worked for me: QT_SCALE_FACTOR=1.5 It supports fractional values, so 1~100%, 1.14~114%, 1.5~150%, etc. QT5 HiDPI docs

w0nd3r365 avatar Jul 18 '24 19:07 w0nd3r365