flathub / com.vscodium.codium

https://flathub.org/apps/details/com.vscodium.codium
94 stars 19 forks source link

App blurry with screen scaling #301

Closed zecakeh closed 4 months ago

zecakeh commented 4 months ago

Since the last update that enables Wayland by default, the whole app is blurry on my screen.

I am using Fedora 39 Silverblue (so the GNOME DE on Wayland), with a HiDPI screen and 200% scaling.

See on this screenshot that everything looks blurry (text, icons) when the image is zoomed at 100%:

image

noonsleeper commented 4 months ago

@zecakeh see https://issues.chromium.org/issues/40083534 maybe you need to follow the instructions on the readme and override wayland to x11 since this is an upstream problem, when they fix it will be fixed for vscodium as well. See https://github.com/flathub/com.vscodium.codium?tab=readme-ov-file#wayland-vs-x11

zecakeh commented 4 months ago

It tried the instructions from the README, but the app doesn't appear when I try to launch it and there are no errors in the logs.

noonsleeper commented 4 months ago

try this

flatpak override --user --socket=x11 --nosocket=wayland com.vscodium.codium
flatpak run com.vscodium.codium --ozone-platform=x11 --verbose

this fix your problem?

zecakeh commented 4 months ago

Yes it does

noonsleeper commented 4 months ago

also you can try this (backup your overrides first since this reset all of them)?

flatpak permission-reset com.vscodium.codium
flatpak override --user --reset com.vscodium.codium
flatpak override --user --nosocket=wayland com.vscodium.codium
flatpak run com.vscodium.codium . --ozone-platform=x11 --verbose
zecakeh commented 4 months ago

It works too

zecakeh commented 4 months ago

Is the single dot meant to be here in the last line? It works with or without it.

noonsleeper commented 4 months ago

Is the single dot meant to be here in the last line? It works with or without it.

Sorry my mistake the . is for the current directory, is not needed for anything :smiley:

on the other hand, I'll add an env-var to force --ozone-platform=x11 for those who needed like you.

zecakeh commented 4 months ago

I don't know if it's of any interest to you, but I have the same issue with im.riot.Riot, and just setting flatpak override --user --nosocket=wayland is enough because they set the command line flags conditionally at runtime inside the flatpak: https://github.com/flathub/im.riot.Riot/blob/master/element.sh.

noonsleeper commented 4 months ago

I don't know if it's of any interest to you, but I have the same issue with im.riot.Riot, and just setting flatpak override --user --nosocket=wayland is enough because they set the command line flags conditionally at runtime inside the flatpak: https://github.com/flathub/im.riot.Riot/blob/master/element.sh.

Yes indeed, it useful =)

noonsleeper commented 4 months ago

@zecakeh in a couple of hours will be available a new release that I hope will fix this problem, look at this comment

zecakeh commented 4 months ago

Works like a charm!

noonsleeper commented 4 months ago

@zecakeh then I will close this that is already fixed