lbryio / spee.ch

An image hosting service on top of the LBRY protocol.
https://spee.ch
MIT License
186 stars 77 forks source link

configure asks for and creates uploads dir, but not downloads #850

Open jessopb opened 5 years ago

jessopb commented 5 years ago

Currently, configure relies on a default home Downloads directory to be created, but will happily create Uploads. If the target OS doesn't have a Downloads directory, the daemon is unable to download content.

tzarebczan commented 5 years ago

I don't think I've ever seen the daemon fail to make the default download directory on any OS. This should still be a configurable setting through the setup cli tool.

jessopb commented 5 years ago

Clement's image issues were solved by typing "mkdir Downloads". the speech cli only asks for a setting for Uploads, and creates that. So far speech has by defalut been relying on standard Downloads directory supplied by the OS (which probably isn't ideal as it mixes lbry files with whatever else is downloaded.)

jessopb commented 5 years ago

It may be a good point that creating the directory for lbrynet is out of scope for speech, as opposed to just maybe knowing where it is.

jessopb commented 5 years ago

It's probably best to give speech siteConfig the lbrynet root environment directory, prehaps create Uploads and Downloads there, although lbrynet should be responsible for creating those.