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
This commit is contained in:
Artturin 2023-04-08 22:50:24 +03:00
parent e8a861f940
commit 32ac1fb6ae

View File

@ -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";