[Xpano on NixOS] #nix #flatpak

July 27, 2023 ยท View on GitHub

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):

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, NixOSWiki):

ln -s /run/current-system/sw/share/icons ~/.local/share/icons

Add the following dirs to the filesystem permissions with Flatseal:

~/.local/share/icons:ro
/nix/store:ro