-R option deletes user preferences
Reported version
3.0
Type
Functional
Frequency
Few
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
Yes
Project
Version: 3.0.5
The documentation of the -R
option indicates that one can use it to temporarily use factory settings, but keep the user settings.
However, this is not so. After I did…
musescore3 -R -o x.pdf somefile.mscx
… my user settings were destroyed (which I did not want, which is precisely why I used the -R
option instead of the -F
option).
In MuseScore 3, using factory settings for such a conversation is necessary because otherwise it applies the chosen user style to all files, instead of just at new score creation (which is a regression, even if it may be desired behaviour, or it may be a bug).
Fix version
3.3.0
Comments
You should be to apply a style file in the fly, using the
-S style.mss
optionThe problem is that it applies a style when it should not.
Create and use a default.mss
The code evaluateting the commandline options is:
The code reseting is
So -R removes only the musescore.ini file (and a lock to it), -F additionaly removes shortcuts, workspaces, translations, extensions, etc.
In reply to Create and use a default.mss… by Jojo-Schmitz
No, because applying any MSS file, over what is in the score itself, is wrong.
In reply to No, because applying any MSS… by mirabilos
Why? Applying a default.mss is as good as not using any.
No, because those would need to change between versions, etc.
Then create a new default.mss. This is meant to be a workaround, for now and this release...
Maybe the -S option could get extended to apply the builtin default style, if no style file is given. Currently it exits with a usage message. Wonder what happens with
-S /dev/zero
, shpould work, loading ot a style file return false on error, but here that return value isn't checked for.I’ve got a better workaround… use
-c
with a temporary directory.Can’t set the audio samplerate to 48 kHz (from 44k100Hz), but, oh well…
In reply to I’ve got a better workaround… by mirabilos
-b bitrate
?In reply to -b bitrate? by Jojo-Schmitz
No, that’s the MP3 bitrate (128 kbit/s), for some reason not applied to the other compressed formats (Vorbis, FLAC).
another place for improvment...
https://github.com/musescore/MuseScore/pull/5132
I only addressed -R because I don't see how the -o affects restoring factory settings. Here's what I did.
-R restores factory preferences, but retains user customizations like shortcuts and workspaces
-F restores all preferences and removed customizations.
Updated -h (-help) to clarify these options
Did nothing to change the behavior of Help->Revert to Factory Settings.
Updated title to show the actual issue. Updated frequency since this annoys at least 2 of us.
PR got closed meanwhile
Changing the documentation would work for me, but don’t forget the manpage (I can help with the patch to that, of course).
In the meantime, https://github.com/musescore/MuseScore/pull/5137 addresses the manpage part of this, using Jojo’s descriptions from above to describe the current behaviour.
https://github.com/musescore/MuseScore/pull/5139
Fixed in branch master, commit c9b9359465
_Merge pull request #5139 from mike320/288600-RComandLine
Fix #288600 -R Command Line_
Automatically closed -- issue fixed for 2 weeks with no activity.