Skip to content

Commit

Permalink
main: Move GstStartup::Initialize after QApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Nov 14, 2024
1 parent 6a60eff commit 544db75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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);

Expand Down

0 comments on commit 544db75

Please sign in to comment.