Browse Source

Fallback to hardcoded icon on Linux if icon not found in theme

Vignesh B 3 years ago
parent
commit
251a395d86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.cpp

+ 1 - 1
src/main.cpp

@@ -162,7 +162,7 @@ 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"));
+  	app.setWindowIcon(QIcon::fromTheme("com.github.iwalton3.jellyfin-media-player", QIcon(":/images/icon.png")));
 #endif
 
 #if defined(Q_OS_MAC) && defined(NDEBUG)