about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorJuraj Hercek <snvizq@hck.sk>2022-07-02 14:45:02 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-07-02 15:14:50 +0000
commit4b747de873464eee21e6be3718110202740846b9 (patch)
tree2f144184c2b000bcea02733a60d1c3ee48960a22 /pkgs/applications
parent399c514226ac48d7855838d0777f47f2fa59730a (diff)
freecad: fix crash when selecting color of a solid
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.

(cherry picked from commit 269b50007315c08ebb9a86d778fca2e39ed6ac21)
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/graphics/freecad/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/freecad/default.nix b/pkgs/applications/graphics/freecad/default.nix
index c05f3502aec32..6c3f6fac3039b 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 = [