insomnia: Add gappsWrapperArgs to wrapProgram

Without wrapping insomnia with `gappsWrapperArgs`, importing from file
crashes the application with an error about
gsettings-desktop-schemas. In an earlier attempt, I unset the variable
`dontWrapGApps = true` but that caused insomnia to be wrapped twice
because of the usage of `wrapProgram` in `preFixup`.
This commit is contained in:
Pranay Sashank
2023-04-07 17:41:21 +05:30
committed by pranaysashank
parent 955cf9d5dd
commit afd35a40e7
+1 -1
View File
@@ -81,7 +81,7 @@ in stdenv.mkDerivation rec {
'';
preFixup = ''
wrapProgram "$out/bin/insomnia" --prefix LD_LIBRARY_PATH : ${runtimeLibs}
wrapProgram "$out/bin/insomnia" "''${gappsWrapperArgs[@]}" --prefix LD_LIBRARY_PATH : ${runtimeLibs}
'';
meta = with lib; {