diff --git a/src/main.cpp b/src/main.cpp index b041c73a..ec64f5f0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -155,11 +155,16 @@ int main(int argc, char *argv[]) qputenv("QT_SCALE_FACTOR", scale.toUtf8()); QApplication app(newArgc, newArgv); -#if defined(Q_OS_WIN) || defined(Q_OS_LINUX) +#if defined(Q_OS_WIN) // Setting window icon on OSX will break user ability to change it app.setWindowIcon(QIcon(":/images/icon.png")); #endif +#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"))); +#endif + #if defined(Q_OS_MAC) && defined(NDEBUG) PFMoveToApplicationsFolderIfNecessary(); #endif