ransome1 / sleek

todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)
https://github.com/ransome1/sleek/wiki
MIT License
1.37k stars 105 forks source link

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

Open ww-9 opened 11 months ago

ww-9 commented 11 months ago

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.

AaronKnowls commented 11 months ago

I'm also interested in this. Thanks.

Congrats of version 2!

ransome1 commented 11 months ago

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.

ww-9 commented 11 months ago

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.

ransome1 commented 11 months ago

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.

ww-9 commented 11 months ago

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