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

For Windows, store configuration in a file rather than the windows registry? #7

Open
lightvector opened this issue Nov 18, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@lightvector
Copy link

lightvector commented Nov 18, 2018

Nice to see some recent work on GoGui! One other issue I came across as a user - it appears that on windows, information such as the list of attachable programs and related options are stored in the Window Registry. This makes it very hard to edit the configuration by hand (for example to add a large number of new attachable programs, or en-mass change the paths of those programs when rearranging where things are saved on one's hard drive) which right now requires painstakingly doing things one by one in the GoGui UI. It also makes it very hard to save or back-up the configuration, copy it between machines, etc.

It would be great if these were simply stored in a textual config file in AppData (which is the way that perhaps a majority of Windows programs store user configuration options and data) or in the installation directory of the GUI, or some other standard location.

@alreadydone
Copy link

Registry data can be exported and imported, as .reg files in text form IIRC; I don't know how convenient it is in this case though.

@lightvector
Copy link
Author

lightvector commented Nov 18, 2018

Yeah, I know there are other tools one can use to edit the windows registry, but it would be far more convenient if GoGui itself stored user config data in a nicer location, like a plain config file. (Edit: it also took quite a lot of digging to figure out that it was even using the registry as a storage location in the first place, and where in the registry to look, I think the fact that GoGui does this isn't really documented anywhere that I could find).

@Remi-Coulom
Copy link
Owner

Remi-Coulom commented Nov 18, 2018

I don't like storing configuration in the Windows registry either, but it is the behaviour of the standard java.util.prefs.Preferences API used by gogui.

https://docs.oracle.com/javase/7/docs/api/java/util/prefs/Preferences.html

From a quick look at the doc, it does not seem easy to specify a different storage system. But I may be wrong.

Edit: I found this:
http://www.davidc.net/programming/java/java-preferences-using-file-backing-store

@Remi-Coulom
Copy link
Owner

Closing because it would be too much work, and a long-term waste of energy to go against the default java way of doing this thing.

@Remi-Coulom Remi-Coulom added the wontfix This will not be worked on label May 18, 2019
@Remi-Coulom Remi-Coulom added enhancement New feature or request and removed wontfix This will not be worked on labels Dec 22, 2023
@Remi-Coulom
Copy link
Owner

I am reopening because it is very annoying. Not sure how to do it simply. But parameters, list of programs in particular, should be easily copyable from one machine to another.

@Remi-Coulom Remi-Coulom reopened this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants