fix documents path not found on linux

This commit is contained in:
2026-07-02 19:16:13 +02:00
parent 22aa22ce76
commit c468321637
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -38,6 +38,9 @@
packages = with pkgs; [ packages = with pkgs; [
# Needed by flutter_secure_storage # Needed by flutter_secure_storage
libsecret.dev libsecret.dev
# Needed by path_provider on linux
xdg-user-dirs
]; ];
processes.web-server = { processes.web-server = {
+1 -1
View File
@@ -39,7 +39,7 @@ Future<void> _initializePlugins() async {
// PDF rendering (especially needed for web) // PDF rendering (especially needed for web)
pdfrxFlutterInitialize(); pdfrxFlutterInitialize();
// Local storage (not supported on web) // Local storage (not supported or necessary on web)
if (!kIsWeb) { if (!kIsWeb) {
final dir = await getApplicationDocumentsDirectory(); final dir = await getApplicationDocumentsDirectory();
Hive.init(dir.path); Hive.init(dir.path);