Fix icon for Wayland

This commit is contained in:
Fdmt3ch 2023-10-31 04:55:12 +01:00
parent 698e18e2eb
commit 7f72a3e9ff
2 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@ Exec=jellyfinmediaplayer
Icon=com.github.iwalton3.jellyfin-media-player
Terminal=false
Type=Application
StartupWMClass=jellyfinmediaplayer
StartupWMClass=com.github.iwalton3.jellyfin-media-player
Categories=AudioVideo;Video;Player;TV;
Actions=DesktopF;DesktopW;TVF;TVW

View File

@ -178,6 +178,8 @@ int main(int argc, char *argv[])
#if defined(Q_OS_LINUX)
// Set window icon on Linux using system icon theme
app.setWindowIcon(QIcon::fromTheme("com.github.iwalton3.jellyfin-media-player", QIcon(":/images/icon.png")));
// Set app id for Wayland compositor window icon
app.setDesktopFileName("com.github.iwalton3.jellyfin-media-player");
#endif
#if defined(Q_OS_MAC) && defined(NDEBUG)