Closed Hannes1909 closed 3 months ago
I imagine you are missing portal support for file pickers. You need something that implements them. I am guessing if you install something like flatpak it will probably bring in portal support with it. A quick search shows more portal libraries are available to also install on Nix. EG the GTK and the QT ones are available. There is also xdg-desktop-portal-hyprland
.
1) Avalonia attempts to use xdg-desktop-portal DBUS protocol provided by any normal modern Linux distro 2) Avalonia attempts to load GTK using default library load path (which works with anything except for gobolinux and its spiritual followers)
If both of those fail, Avalonia will not be able to show the system file dialog.
Please, adjust your environment in a way that either (1) or (2) will be available.
Thanks for your replies, I was able to find a solution thanks to this upstream issue Moving my xdg-portal configuration from homemanager to /etc/nixos/configuration.nix did the trick.
Describe the bug
Hi, I'm running NixOS unstable on Hyprland - when installing OpenUtau (built on Avalonia 11.0.4) and opening any FileBrowserDialog like "File --> Open/Save/Import Audio...." etc. it crashes with the error in title. Stacktrace:
To Reproduce
NixOS Unstable, Hyprland. Install OpenUtau with home-manager like:
run it, open FileBrowserDialog / FilePicker.
Expected behavior
FilePicker opens as expected and lets me select a file to open/save to etc.
Avalonia version
11.0.4
OS
Linux
Additional context
Dependencies from nixpkgs It seems to work on a test VM with NixOS Stable Gnome (Boot upo ISO, Install, nix-shell -p OpenUtau), so it could be only related to Hyprland, maybe? Or some Nix-Packages/Dependencies for FilePicker I'm missing?