Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Where a settings stored? Export+reimport on another computer #100

Closed
bsto opened this issue Sep 16, 2017 · 7 comments
Closed

Where a settings stored? Export+reimport on another computer #100

bsto opened this issue Sep 16, 2017 · 7 comments
Assignees

Comments

@bsto
Copy link

bsto commented Sep 16, 2017

Where are the settings pf Captura stored?

I prefer a storage into an *.ini file in the installation folder. This way I could keep all related files together and run Capture from USB flash drive.

Furthermore I could copy this *.ini file onto another computer into another Capture installation

Could you let users at least export (+import) settings

@bsto bsto changed the title Where a settings stored? Export+reimport on onther computer Where a settings stored? Export+reimport on another computer Sep 16, 2017
@MathewSachin
Copy link
Owner

The settings are stored in Captura folder in the AppData folder.
More specifically: %AppData%/Captura/.
You can copy this folder to another computer.

Storing the settings in app directory might be problematic since directory access may not always be available.
e.g. Let's suppose Captura is installed in Program Files. Creating a settings file there would require Administrator permission.

Export/Import seems worth implementing. Would surely try to implement.

@bsto
Copy link
Author

bsto commented Sep 17, 2017

I am NOT only talking about storing in the app directory but on an arbitrary directory like

D:\tools\cap
...or on an USB flash drive.

At least Captura should give the users an option to store it somewhere else.
If there are Adminstrator permissions prohibiting the writing then ok - bad luck.
However in 99% of the cases writing is allowed.

@MathewSachin
Copy link
Owner

Custom Settings directory seems good, will implement.

@MathewSachin
Copy link
Owner

I'm facing a problem here. I'll have to store the path to the settings directory somewhere.
I cannot store that in Settings.
Let me know your thoughts.

@bsto
Copy link
Author

bsto commented Sep 18, 2017

Store it in an *.ini file in installation directory (if possible).
If it is not possible no settings folder move is possible. User has to use the current AppData

Another idea: Offer a cmdline parameter:

Captura.UI.exe -settings="D:\tools\cap\"

or simpler (mind the blank after*.exe):

Captura.UI.exe "D:\tools\cap\"

@MathewSachin
Copy link
Owner

MathewSachin commented Sep 18, 2017

Captura.UI.exe --settings="D:\tools\cap\" seems good.

This way if you keep Captura in a portable directory with Settings in Settings folder under the same directory, you can have a batch file; Captura.bat containing: Captura.UI -settings="Settings" to simplify opening.

Will implement soon.

Edit: Implemented in inno branch.

@MathewSachin
Copy link
Owner

Merged into master

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants