SpacingBat3 / WebCord

A Discord and SpaceBar :electron:-based client implemented without Discord API.
MIT License
1.83k stars 94 forks source link

add `--ozone-platform-hint=auto` to the AUR build script #539

Closed zacharyburnett closed 2 months ago

zacharyburnett commented 2 months ago

Description

On Wayland, Webcord is blurry. From a suggestion in another issue, I've been able to resolve this issue and (tested it on Wayland and X11) by adding --ozone-platform-hint=auto to /usr/share/applications/webcord.desktop, as so:

[Desktop Entry]
Name=WebCord
Comment=A Discord and SpaceBar Electron-based client implemented without Discord API
GenericName=Internet Messenger
- Exec=webcord %U
+ Exec=webcord --ozone-platform-hint=auto %U
Icon=webcord
Type=Application
StartupNotify=true
Categories=Network;InstantMessaging;

However, every time pacman updates Webcord, it overwrites this change.

Suggestions

I apologize for not accompanying this issue with a pull request; I'm sorta new to Arch so I'm a bit confused where the build script for the AUR resides. Is it possible to insert arguments into Exec to add --ozone-platform-hint=auto?

Alternatives

No response

Additional Context

No response

SpacingBat3 commented 2 months ago

I don't plan messing with default Electron Wayland settings, either XWayland and Wayland has (dis)advantages with Chromium and those can vary from the multiple conditions like GPU (driver), DE etc. Changes like those are up to the users, so they should really decide whenever they want to use Wayland or XWayland for their Electron-based software.

I'm sorta new to Arch so I'm a bit confused where the build script for the AUR resides

See SpacingBat3/AUR for the repo which I use to I manage my Arch packages I've published to AUR, it contains submodules that point to actual GIT repos I use, although you might not be able to fetch them via SSH as this kind of access might be restricted to me only, at least push access. AUR pages contain a link to the HTTPS link of the repo, though.

zacharyburnett commented 2 months ago

thanks for the info!