From 544db75eb4a122fc6a8254e7c7dbb4ba7e8d7cfc Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Thu, 14 Nov 2024 18:56:23 +0100 Subject: [PATCH] main: Move GstStartup::Initialize after QApplication --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 888404e87..b3c14d80c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -193,8 +193,6 @@ int main(int argc, char *argv[]) { QGuiApplication::setDesktopFileName(u"org.strawberrymusicplayer.strawberry"_s); QGuiApplication::setQuitOnLastWindowClosed(false); - GstStartup::Initialize(); - QApplication a(argc, argv); KDSingleApplication single_app(QCoreApplication::applicationName(), KDSingleApplication::Option::IncludeUsernameInSocketName); if (!single_app.isPrimaryInstance()) { @@ -215,6 +213,8 @@ int main(int argc, char *argv[]) { qLog(Debug) << "Looking for resources in" << QCoreApplication::libraryPaths(); #endif + GstStartup::Initialize(); + // Gnome on Ubuntu has menu icons disabled by default. I think that's a bad idea, and makes some menus in Strawberry look confusing. QCoreApplication::setAttribute(Qt::AA_DontShowIconsInMenus, false);