Blob Blame History Raw
diff -rupN Clementine-1.3.1.org/src/ui/mainwindow.cpp Clementine-1.3.1/src/ui/mainwindow.cpp
--- Clementine-1.3.1.org/src/ui/mainwindow.cpp	2016-04-19 11:08:35.000000000 -0400
+++ Clementine-1.3.1/src/ui/mainwindow.cpp	2018-10-17 21:53:40.168962770 -0400
@@ -1023,7 +1023,13 @@ MainWindow::~MainWindow() {
 
 void MainWindow::ReloadSettings() {
 #ifndef Q_OS_DARWIN
-  bool show_tray = settings_.value("showtray", true).toBool();
+  // Fedora patch. Disable systray on Gnome as it prevents Clementine from starting
+  bool show_tray;
+  const char* xdg_desktop = std::getenv("XDG_CURRENT_DESKTOP");
+  if (xdg_desktop && std::string(xdg_desktop).find(std::string("GNOME")) != std::string::npos)
+    show_tray = false;
+  else
+    show_tray= settings_.value("showtray", true).toBool();
 
   tray_icon_->SetVisible(show_tray);
   if (!show_tray && !isVisible()) show();