sleek icon indicating copy to clipboard operation
sleek copied to clipboard

Portable mode where user data is saved in a folder together with the program

Open ww-9 opened this issue 2 years ago • 5 comments

Portable mode request for v2.0.

On Windows userData folder is saved in user's AppData folder in the new version. In the previous user-preferences.json was saved in the program folder. Request to implement a portable mode where all settings are saved in a folder together with the program.

It would be even better if the relative paths to the .txt files are saved, so that they can be saved there in the folder.

ww-9 avatar Oct 31 '23 08:10 ww-9

I'm also interested in this. Thanks.

Congrats of version 2!

AaronKnowls avatar Nov 03 '23 10:11 AaronKnowls

Saving the user preferences in the same folder than the application will require to save the userData folder in that folder. That's because in v2.x we now have 2 configuration files, one for settings and one for persisted filters. And there can be potentially more of course, if future feature require this. Is this what is expected from a portable Windows app? I don't have a lot of experiences with Windows.

The relative file paths might be a bit more tricky and need a significant amount of research prior to implementation.

I would suggest to narrow down the scope here to the main issue. Otherwise we will be dragging this issue with us for a long time. A separate feature request is a good idea. Please make it as detailed as possible.

ransome1 avatar Nov 03 '23 14:11 ransome1

I don't see any potential issues with 2 or more files. The main thing is that it should be only the configuration files and not the entire cache of the electron.

Another ticket for relative paths is a good idea.

ww-9 avatar Nov 03 '23 15:11 ww-9

I fully agree. It would only be the actual 2 configuration files. Still unsure if just as it or in a folder, just to have both nearly aggregated.

ransome1 avatar Nov 03 '23 17:11 ransome1

Definitely in a folder, if something else has to be added in the future

ww-9 avatar Nov 03 '23 19:11 ww-9