ublue-os / bluefin

The next generation Linux workstation, designed for reliability, performance, and sustainability.
https://projectbluefin.io
Apache License 2.0
1.22k stars 159 forks source link

Framework laptop, set VSCode to default Wayland use such that fractional scaling looks good #1655

Open frederikb96 opened 2 months ago

frederikb96 commented 2 months ago

Describe the bug

I have a fresh bluefin on my framework 13 laptop. I start vscode and it looks blurry. I checked web for the issue and found this closed one here: #1362 I followed the workaround to set ELECTRON_OZONE_PLATFORM_HINT=auto and then it works.

My request would be to set this out of the box for Framework laptops such that users dont have to check the web to find this issue and apply the workaround themselfes. Thanks :)

What did you expect to happen?

On fresh framework laptop, a non blurry VS Code :)

Output of rpm-ostree status

No response

Output of groups

No response

Extra information or context

No response

zackify commented 1 month ago

yeah vs code is unusable for me on fw13 with 150% scale, 125% its still bad

I think all thats needed is:

Exec=/usr/share/code/code --ozone-platform=wayland %F

to the code.desktop file at build time, feel like i almost know enough from bluebuild to make a pr

castrojo commented 1 month ago

Yeah we could override the code.desktop but we're hesitant to do this per app since there's almost always some unintended consequence or config that users might be doing.

For now we recommend copying /usr/share/applications/code.desktop into ~.local/share/applications and then making the change in that file and then that'll sort it.

zackify commented 1 month ago

we should add this to the vs code docs or framework section

castrojo commented 1 month ago

This should also be solved by F41, which is about to go to beta, and then maybe we recommend :stable for framework from then on? Or someone does a PR, whichever comes first I guess, hah.