From 269b50007315c08ebb9a86d778fca2e39ed6ac21 Mon Sep 17 00:00:00 2001 From: Juraj Hercek Date: Sat, 2 Jul 2022 14:45:02 +0200 Subject: [PATCH] freecad: fix crash when selecting color of a solid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FreeCAD crashes when user wants to select color of a solid with following console message (long lines wrapped): $ nix run nixpkgs#freecad FreeCAD 0.20, Libs: 0.20RUnknown © Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022 FreeCAD is free and open-source software licensed under the terms of LGPL2+ license. FreeCAD wouldn't be possible without FreeCAD community. ##### #### ### #### # # # # # # # ## #### #### # # # # # #### # # # # # # # ##### # # # # #### #### # # # # # # # # # # # # # # ## ## ## # # #### #### ### # # #### ## ## ## (freecad:19737): GLib-GIO-ERROR **: 14:33:02.511: Settings schema 'org.gtk.Settings.ColorChooser' is not installed fish: Job 1, 'nix run nixpkgs#freecad' terminated by signal SIGTRAP (Trace or breakpoint trap) This patch adds hooks for GApps to relevant places in order to make FreeCAD finding the Color Chooser dialog schema effectively preventing crash from happening. --- pkgs/applications/graphics/freecad/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/graphics/freecad/default.nix b/pkgs/applications/graphics/freecad/default.nix index c05f3502aec3..6c3f6fac3039 100644 --- a/pkgs/applications/graphics/freecad/default.nix +++ b/pkgs/applications/graphics/freecad/default.nix @@ -42,6 +42,7 @@ , swig , vtk , wrapQtAppsHook +, wrapGAppsHook , xercesc , zlib }: @@ -64,6 +65,7 @@ mkDerivation rec { pyside2-tools gfortran wrapQtAppsHook + wrapGAppsHook ]; buildInputs = [