spirit icon indicating copy to clipboard operation
spirit copied to clipboard

Footgun with relative paths and workdir option

Open vorner opened this issue 7 years ago • 1 comments

The first time configuration is loaded, it is before switching the working directory (because the config contains the directory to switch to). The next time it is after the switch. If there's a relative path, it may point to something else or not exist, logging errors and not updating the config.

Possible improvements:

  • Turn all the paths we know about to absolute on startup.
  • Try loading the configuration once more just after switching the directory. This way errors manifest sooner (optimally even before we go to background), so the user is aware of them.

vorner avatar Sep 02 '18 10:09 vorner

Turning all the ones from command line is done in v0.2.4. The ones from configuration wouldn't work ‒ the configuration may be reloaded later on.

vorner avatar Oct 19 '18 19:10 vorner