From 3a96c0a4f289c19e5d366658f034d434d7b8a17d Mon Sep 17 00:00:00 2001 From: Mario Hros Date: Mon, 4 Jul 2022 22:46:43 +0200 Subject: [PATCH] autokey: fix No GSettings schemas are installed and clean wrapping Remove unnecessary wrapping stuff and fix "No GSettings schemas are installed" fatal error when opening the main window. fixes #137417 --- pkgs/applications/office/autokey/default.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/office/autokey/default.nix b/pkgs/applications/office/autokey/default.nix index 4aef68ba0d06..0a00ac1463b5 100644 --- a/pkgs/applications/office/autokey/default.nix +++ b/pkgs/applications/office/autokey/default.nix @@ -22,7 +22,7 @@ python3Packages.buildPythonApplication rec { # Tests appear to be broken with import errors within the project structure doCheck = false; - nativeBuildInputs = [ wrapGAppsHook ]; + nativeBuildInputs = [ wrapGAppsHook gobject-introspection ]; buildInputs = [ gobject-introspection @@ -38,19 +38,9 @@ python3Packages.buildPythonApplication rec { pygobject3 ]; - dontWrapGapps = true; - - pythonPath = with python3Packages; requiredPythonModules [ dbus-python xlib pygobject3 ]; - postInstall = '' - rm $out/bin/autokey-qt - buildPythonPath "$out $pythonPath" - makeWrapperArgs+=( - "''${gappsWrapperArgs[@]}" - # for autokey-shell ModuleNotFoundError: No module named 'autokey' - --prefix "PYTHONPATH" ":" "$out/lib/${python3Packages.python.libPrefix}/site-packages" - --prefix "PYTHONPATH" ":" "$program_PYTHONPATH" - ) + # remove Qt version which we currently do not support + rm $out/bin/autokey-qt $out/share/applications/autokey-qt.desktop ''; meta = {