AllanChain / sane-break

A gentle break reminder that helps you avoid mindlessly skipping breaks.
GNU General Public License v3.0
7 stars 2 forks source link

Portable support #2

Closed vevycl closed 1 month ago

vevycl commented 1 month ago

Hi and thanks for the app.

I wish the app supports portable mode where it reads and writes settings to a file/directory next to the executable itself. This way it can be run from USB, for example.

A good way to do it for the app to see its path. If not in Program Files, then act portable.

AllanChain commented 1 month ago

Thanks for raising this issue. From my understanding, we can do something like this: if there is a settings file in the same directory as the app executable, then pick that setting; if not, use default locations for the settings file. And for initialization, I will give an example settings file in README. Please let me know if this alternative approach can solve your problem.

vevycl commented 1 month ago

That can work too. Thanks.

AllanChain commented 1 month ago

https://github.com/AllanChain/sane-break/releases/tag/v0.4.0 is released which includes this feature.