WebCord icon indicating copy to clipboard operation
WebCord copied to clipboard

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

Open zacharyburnett opened this issue 1 year ago • 1 comments

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

zacharyburnett avatar May 11 '24 16:05 zacharyburnett

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.

SpacingBat3 avatar May 11 '24 20:05 SpacingBat3

thanks for the info!

zacharyburnett avatar May 13 '24 11:05 zacharyburnett