Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a command-line option for resetting application settings #61

Closed
sergm opened this issue May 22, 2021 · 0 comments
Closed

Add a command-line option for resetting application settings #61

sergm opened this issue May 22, 2021 · 0 comments

Comments

@sergm
Copy link
Member

sergm commented May 22, 2021

It should be possible for the user to revert the application settings to the factory defaults, even in case the application no longer starts normally, so it may become challenging for the user to adjust settings any longer.

This is sometimes done by adding a "purge" function to the uninstaller. However, it is not a convenient option if the user wants to continue working with the application. Additionally, if the application is installed system-wide, the uninstaller typically fails to purge settings for all the users who have them created, and performs the cleanup for the current user only.

Hence, it should likely be a command-line switch that the application parses and handles early, e.g. before attempting to start MIDI and audio processing, which might block normal startup in some rare cases (albeit, such bugs deserve a separate issue).

@sergm sergm self-assigned this May 22, 2021
@sergm sergm added this to the mt32emu_qt_1_10 milestone May 22, 2021
sergm added a commit that referenced this issue Feb 26, 2022
A new command "reset" is now recognised if specified on the command line.
It provides for a simple way to restore factory defaults of the application
settings of some types. Additionally, the CLI support got refactored for
making further extensions easier a bit.
@sergm sergm closed this as completed Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant