2023-07-27 Xpano on NixOS Tags: nix flatpak## Install from nixpkgs https://search.nixos.org/packages?channel=unstable&show=xpano ## Running a self built binary When crashing with this error: ``` (Xpano:7068): GLib-GIO-ERROR **: 16:40:35.251: No GSettings schemas are installed on the system ``` Workaround 1) ([from here](https://discourse.nixos.org/t/gtk-file-dialog-causes-segfaults-glib-gio-error-settings-schema-org-gtk-settings-filechooser-does-not-contain-a-key-named-show-type-column/6853/2)): ``` mkdir -p ~/.local/share/glib-2.0/schemas cp -pi /nix/store/...-gtk+3-3.<LATEST>/share/gsettings-schemas/gtk+3-3.*/glib-2.0/schemas/gschemas.compiled ~/.local/share/glib-2.0/schemas/ ``` Workaround 2) add this to home-manager: ``` xdg = { enable = true; systemDirs.data = [ "${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}" "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}" ]; }; ``` ## Running from Flatpak Possible errors: 1) App crashes when there is a mouse cursor event (e.g. when moving the mouse on the edge of a resizable panel) 2) Small mouse cursor when using display scaling Solution ([discourse](https://discourse.nixos.org/t/firefox-flatpak-has-missing-mouse-cursors-in-native-wayland-mode/24321/6), [NixOSWiki](https://nixos.wiki/wiki/Fonts#Flatpak_applications_can.27t_find_system_fonts)): ``` ln -s /run/current-system/sw/share/icons ~/.local/share/icons ``` Add the following dirs to the filesystem permissions with [Flatseal](https://flathub.org/apps/com.github.tchx84.Flatseal): ``` ~/.local/share/icons:ro /nix/store:ro ```