Apparently, QtSingleApplication was not working if no parameter was passed to MuseScore.
This behaviour is changed in r2707. MuseScore cannot be run several times and so the session problem is out.
I tested with nightly r.2713 but it still opens two sessions and I get the "previous session unexpectedly quit" message on the second time. I opened both times from the shortcut I have in my start menu (nightly.exe).
Perhaps this is limited to the Windows nightly builds?
To have the same behavior with the nightly you may need to change line 1706 in mscore.cpp from QtSingleApplication* app = new QtSingleApplication("mscore", argc, av);
to QtSingleApplication* app = new QtSingleApplication("nightly", argc, av);
Maybe QtSingleApplication app relies on the name of the executable to do its magic ?
I tested again with a vanilla build of r2713 and it's working on my computer.
Comments
I thought we put something to prevent MuseScore to be launch twice? QtSingleApplication?
Apparently, QtSingleApplication was not working if no parameter was passed to MuseScore.
This behaviour is changed in r2707. MuseScore cannot be run several times and so the session problem is out.
I tested with nightly r.2713 but it still opens two sessions and I get the "previous session unexpectedly quit" message on the second time. I opened both times from the shortcut I have in my start menu (nightly.exe).
Perhaps this is limited to the Windows nightly builds?
To have the same behavior with the nightly you may need to change line 1706 in mscore.cpp from
QtSingleApplication* app = new QtSingleApplication("mscore", argc, av);
to
QtSingleApplication* app = new QtSingleApplication("nightly", argc, av);
Maybe QtSingleApplication app relies on the name of the executable to do its magic ?
I tested again with a vanilla build of r2713 and it's working on my computer.
Lasconic, I followed your suggestion for the r. 2717 nightly. It seems to work. Thanks.
Automatically closed -- issue fixed for 2 weeks with no activity.