Closed christian-heusel closed 1 year ago
Your system doesn't have ~/Documents
directory? flutter_hive
requires it initially
My system does have ~/Documents
, thats why I am opening this bug :D
$ realpath ~/Documents
/home/chris/Documents
Do you have any Idea what else could cause this problem?
@christian-heusel flemozi
(transitively) depends on path_provider
to supply the correct directory paths. On Linux, getApplicationDocumentsDirectory
calls the corresponding platform function getApplicationDocumentsPath
, which in turn calls xdg.getUserDirectory
, which simply gives up if the xdg-user-dir
executable isn't available on your path, so perhaps you could check if it is as a first step.
Thanks a lot, that solved the issue! 😄
@KRTirtho Should we perhaps open an issue instead to handle this gracefully?
@skreborn the problem is caused by hive_flutter as it by default uses the documents dir (It shouldn't. I don't know why :confused:) to store all the db and db.cache files. This is something needs to be fixed on the path_provider side and a requirement of xdg-user-dirs
should be stated in their readme
Infos about the system: