sharik
sharik copied to clipboard
Gives error with appimage on arch
ProcessException: Failed to find "xdg-user-dir" in the search path. Command: xdg-user-dir
#0 LocalProcessManager.runSync (package:process/src/interface/local_process_manager.dart:120)
#1 getUserDirectory (package:xdg_directories/xdg_directories.dart:154)
#2 PathProviderLinux.getApplicationDocumentsPath (package:path_provider_linux/path_provider_linux.dart:39)
#3 getApplicationDocumentsDirectory (package:path_provider/path_provider.dart:138)
#4 HiveX.initFlutter (package:hive_flutter/src/hive_extensions.dart:12)
#5 _LoadingScreenState.init (package:sharik/screens/loading.dart:42)

Thanks for reporting it. I have actually faced the exact same issue with Sharik on Arch :)
As a temporary workaround, you could try
sudo pacman -S xdg-user-dirs
(Source: ArchWiki)
Don't close this issue yet, I'll research a bit later if this package can (and should) be embedded directly into the appimage.