Skip to content

Commit

Permalink
cura5: add GTK_USE_PORTAL=1 to fix dialog issus under Gnome
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Jan 12, 2025
1 parent c16465a commit c1aeecc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/cura5/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ stdenvNoCC.mkDerivation rec {
extraPkgs = _: [ ];
};

# The `QT_QPA_PLATFORM=xcb` fixes Wayland support, see
# https://github.com/NixOS/nixpkgs/issues/186570#issuecomment-2526277637
# The `QT_QPA_PLATFORM=xcb` fixes Wayland support, see https://github.com/NixOS/nixpkgs/issues/186570#issuecomment-2526277637
# The `GTK_USE_PORTAL=1` fixes file dialog issues under Gnome, see https://github.com/NixOS/nixpkgs/pull/372614#issuecomment-2585663161
script = writeScriptBin wrapperScriptName ''
#!${stdenv.shell}
# AppImage version of Cura loses current working directory and treats all paths relateive to $HOME.
Expand All @@ -51,7 +51,7 @@ stdenvNoCC.mkDerivation rec {
fi
args+=("$a")
done
QT_QPA_PLATFORM=xcb exec "${curaAppimageToolsWrapped}/bin/${appimageBinName}" "''${args[@]}"
QT_QPA_PLATFORM=xcb GTK_USE_PORTAL=1 exec "${curaAppimageToolsWrapped}/bin/${appimageBinName}" "''${args[@]}"
'';

dontUnpack = true;
Expand Down

0 comments on commit c1aeecc

Please sign in to comment.