Skip to content

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

Merged
Et0h merged 1 commit intoSyncplay:masterfrom
z411:master
Aug 26, 2023
Merged

Define desktop filename for Wayland compliance (fixes icon)#627
Et0h merged 1 commit intoSyncplay:masterfrom
z411:master

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
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.

2 participants