Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define desktop filename for Wayland compliance (fixes icon) #627

Merged
merged 1 commit into from Aug 26, 2023

Conversation

z411
Copy link
Contributor

@z411 z411 commented Aug 21, 2023

Hi,

I've been using Wayland lately and I've noticed that the SyncPlay icon doesn't appear in Wayland:

syncplay1

According to Wayland guidelines, setWindowIcon() no longer works on Wayland and the new way of doing is is to reference the name of the .desktop file through the QGuiApplication::setDesktopFileName() function:

https://community.kde.org/Guidelines_and_HOWTOs/Wayland_Porting_Notes#Application_Icon

I added the required line in ConfigurationGetter.py since that's where the QApplication gets created, please tell me if you'd like it elsewhere. This change fixes the icon in Wayland:

syncplay2

I used "syncplay" since that's how the .desktop file is called, but the guidelines suggest the desktop file should named in a reverse DNS style, but that's up to you.

Cheers.

@Et0h Et0h merged commit 412901e into Syncplay:master Aug 26, 2023
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants