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);