FreeTubeApp / FreeTube

An Open Source YouTube app for privacy
https://freetubeapp.io/
GNU Affero General Public License v3.0
13.07k stars 807 forks source link

[Bug]: Tiny cursor on wayland session while using fractional scaling #5454

Closed EstimatorZeppelin closed 1 month ago

EstimatorZeppelin commented 1 month ago

Guidelines

Describe the bug

When using FreeTube flatpak via a wayland session, and also having fractional scaling turned on, the cursor ends up becoming extremely tiny. This issue isn't present when using via xwayland, however on displays that require fractional scaling, it results in a very blurry and low resolution interface.

It had been reported in the electron issue tracker earlier here

However, this pretty much requires individual app fixes to rectify the issue as per this

Other screenshots of this issue

Screenshot from FreeTube:

cursor

Expected Behavior

The cursor is rendered at the proper size

Issue Labels

usability issue, visual bug

FreeTube Version

v0.21.1 Beta

Operating System Version

Ubuntu 24.04 LTS

Installation Method

Flathub

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

Fixing this issue should make FreeTube pretty much completely wayland compatible

Nightly Build

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 month ago

Try https://github.com/FreeTubeApp/FreeTube/issues/2799#issuecomment-1825542263

EstimatorZeppelin commented 1 month ago

I granted permission to both the local .icons and .themes directories using the below commands, however it didn't work:

sudo flatpak override --filesystem=$HOME/.themes sudo flatpak override --filesystem=$HOME/.icons

Specifying the variables also failed:

sudo flatpak override --env=GTK_THEME=Yaru
sudo flatpak override --env=ICON_THEME=Yaru-blue

Any idea what must be wrong here?

efb4f5ff-1298-471a-8973-3d47447115dc commented 1 month ago

@bungadrum any ideas?

ssnepenthe commented 1 month ago

Overriding the XCURSOR_PATH env var (XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons) seems to fix the issue.

Ref https://github.com/flathub/com.visualstudio.code/pull/490/files

EstimatorZeppelin commented 1 month ago

Overriding the XCURSOR_PATH env var (XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons) seems to fix the issue.

Ref https://github.com/flathub/com.visualstudio.code/pull/490/files

Overriding did indeed fix the issue, thank you very much for the solution to this. It would be better, if it is added by default though.