This is an automated email from the git hooks/post-receive script.
guix_mirror_bot pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 328df1249f gnu: prusa-slicer: Wrap binary for GtkFilechooserdialog.
328df1249f is described below
commit 328df1249f2222c6ac9f6e171a2619a584ac12f8
Author: Yunqi Shao <[email protected]>
AuthorDate: Mon Dec 22 14:15:26 2025 +0100
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 <[email protected]>
Signed-off-by: Cayetano Santos <[email protected]>
---
gnu/packages/engineering.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index 869f0fc00a..75fef9e695 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -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