From 32ac1fb6ae50036c110b30fe27fe208b675812b8 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 8 Apr 2023 22:50:24 +0300 Subject: [PATCH] timeline: fix crash on file dialog env -i HOME="$HOME" DISPLAY="$DISPLAY" WAYLAND_DISPLAY="$WAYLAND_DISPLAY" XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" ./result/bin/timeline --- pkgs/applications/office/timeline/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/office/timeline/default.nix b/pkgs/applications/office/timeline/default.nix index f3f404cda89f..70776bb391bf 100644 --- a/pkgs/applications/office/timeline/default.nix +++ b/pkgs/applications/office/timeline/default.nix @@ -4,6 +4,7 @@ , gettext , makeDesktopItem , copyDesktopItems +, wrapGAppsHook }: python3.pkgs.buildPythonApplication rec { @@ -16,7 +17,7 @@ python3.pkgs.buildPythonApplication rec { sha256 = "sha256-qwH2mt3Va62QJKJGOpt5WV3QksqQaRGEif4CcPC5F2E="; }; - nativeBuildInputs = [ python3.pkgs.wrapPython copyDesktopItems ]; + nativeBuildInputs = [ python3.pkgs.wrapPython copyDesktopItems wrapGAppsHook ]; pythonPath = with python3.pkgs; [ wxPython_4_2 @@ -76,6 +77,12 @@ python3.pkgs.buildPythonApplication rec { runHook postCheck ''; + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + meta = with lib; { homepage = "https://thetimelineproj.sourceforge.net/"; changelog = "https://thetimelineproj.sourceforge.net/changelog.html";