gnu: prusa-slicer: Wrap binary for GtkFilechooserdialog.

Without setting GSETTINGS_SCHEMA_DIR, opening file in prusa-slicer (or
prusa-gcodeviewer which is a symlink to the same binary) crashes with:

Settings schema 'org.gtk.Settings.FileChooser' is not installed
Trace/breakpoint trap

Closes: guix/guix#5039

* gnu/packages/engineering.scm (prusa-slicer)[arguments]: Add
’wrap-program #:phase.
[inputs]: Add bash-minimal.

Change-Id: Ic9763f031d18561aa142fee4f5f6e041f597b4d7
Modified-by: Cayetano Santos <csantosb@inventati.org>
Signed-off-by: Cayetano Santos <csantosb@inventati.org>
This commit is contained in:
Yunqi Shao 2025-12-22 14:15:26 +01:00 committed by Cayetano Santos
parent 1ffe9cf1f4
commit 328df1249f
No known key found for this signature in database
GPG key ID: BF5CDF4DF6BF6682

View file

@ -4420,11 +4420,19 @@ G-codes to binary and vice versa.")
(lambda _
(substitute* "tests/libslic3r/test_quadric_edge_collapse.cpp"
(("#include <libigl/igl/qslim.h>")
"#include <igl/qslim.h>")))))))
"#include <igl/qslim.h>"))))
(add-after 'install 'wrap-program
(lambda _
(wrap-program (string-append #$output "/bin/prusa-slicer")
;; For GtkFileChooserDialog.
`("GSETTINGS_SCHEMA_DIR" =
(,(string-append #$(this-package-input "gtk+")
"/share/glib-2.0/schemas")))))))))
(native-inputs
(list pkg-config catch2-3.8))
(inputs
(list boost-1.83
(list bash-minimal
boost-1.83
cereal
cgal
curl