From c4683216372fce31db51fc11e0d1dc1bdaf0ed61 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Thu, 2 Jul 2026 19:16:13 +0200 Subject: [PATCH] fix documents path not found on linux --- devenv.nix | 3 +++ lib/main.dart | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/devenv.nix b/devenv.nix index 3f38988..b9aabc5 100644 --- a/devenv.nix +++ b/devenv.nix @@ -38,6 +38,9 @@ packages = with pkgs; [ # Needed by flutter_secure_storage libsecret.dev + + # Needed by path_provider on linux + xdg-user-dirs ]; processes.web-server = { diff --git a/lib/main.dart b/lib/main.dart index 9ff91b2..f4e56aa 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -39,7 +39,7 @@ Future _initializePlugins() async { // PDF rendering (especially needed for web) pdfrxFlutterInitialize(); - // Local storage (not supported on web) + // Local storage (not supported or necessary on web) if (!kIsWeb) { final dir = await getApplicationDocumentsDirectory(); Hive.init(dir.path);