rmcrackan/Libation

Feature Request: Add import/export of Libation settings backup for portable use cases

Opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
I was running Libation from a network drive and assumed that it was portable software due to the lack of an installer. When I reinstalled Windows I lost my settings including custom file naming etc which was inconvenient to re-do from scratch.

Describe the solution you'd like
Either:

  1. An import/export settings backup option in the Settings menu
  2. Ability to run Libation in portable mode where all local state including Settings is stored in the application directory rather than the users home directory

Describe alternatives you've considered
Manual backups with Syncthing, Downloading and installing the PortableApp platform

Additional context
Probably not the first time this has been asked. Fairly common feature of this type of enthusiast software, but there's probably a good reason I'm not thinking of that it's not already been implemented.

This is kinda possible if you're willing to get your hands dirty.

  • appsettings.json lives next to Libation.exe; where ever that may be (relative path)
  • all other paths are absolute
  1. Where your settings live: When Libation first runs, it needs a place to put settings so it uses your user_folder/Libation. It then writes that location to appsettings.json which lives in the same folder as Libation.exe. From now on, it actually references the location in that json file. If you manually edit that json file, you can have it point to any absolute path.

2: temp files -- which it needs for intermediary steps while doing downloading: This is editable in a limited way from settings 'download/decrypt' tab. You can also manually edit it inside Settings.json InProgress

3: your "Books" directory: This is where to download books into. After they're downloaded, you can move them anywhere you want. Editable in the settings UI or in Settings.json Books