diff options
author | B YI <uuuuuu@protonmail.com> | 2019-06-25 14:30:58 +0800 |
---|---|---|
committer | B YI <uuuuuu@protonmail.com> | 2019-06-27 13:13:19 +0800 |
commit | 5fff5efea23e69ecc892b200582489a3c0df94d9 (patch) | |
tree | e115dde51539f4b455cbb3a237cb91d0d744c96b | |
parent | e3afc85cbaf57637f829712f338aa12eff2f253a (diff) |
franz: use wrapGAppsHook
I encountered crashes while opening the file selection dialog. ``` (franz:11597): GLib-GIO-ERROR **: 14:08:20.102: No GSettings schemas are installed on the system [1] 11597 trace trap franz ``` This error is also presented in various other gtk applications (e.g. https://github.com/NixOS/nixpkgs/issues/45286). I used the same trick to fix this error.
-rw-r--r-- | pkgs/applications/networking/instant-messengers/franz/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/applications/networking/instant-messengers/franz/default.nix b/pkgs/applications/networking/instant-messengers/franz/default.nix index 2c692055f9aef..63624146aeb8d 100644 --- a/pkgs/applications/networking/instant-messengers/franz/default.nix +++ b/pkgs/applications/networking/instant-messengers/franz/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, makeWrapper, autoPatchelfHook, dpkg +{ stdenv, fetchurl, makeWrapper, wrapGAppsHook, autoPatchelfHook, dpkg , xorg, atk, glib, pango, gdk_pixbuf, cairo, freetype, fontconfig, gtk3 , gnome2, dbus, nss, nspr, alsaLib, cups, expat, udev, libnotify, xdg_utils }: @@ -14,7 +14,7 @@ in stdenv.mkDerivation rec { # don't remove runtime deps dontPatchELF = true; - nativeBuildInputs = [ autoPatchelfHook makeWrapper dpkg ]; + nativeBuildInputs = [ autoPatchelfHook makeWrapper wrapGAppsHook dpkg ]; buildInputs = (with xorg; [ libXi libXcursor libXdamage libXrandr libXcomposite libXext libXfixes libXrender libX11 libXtst libXScrnSaver @@ -37,8 +37,12 @@ in stdenv.mkDerivation rec { --replace Exec=\"/opt/Franz/franz\" Exec=franz ''; + dontWrapGApps = true; + postFixup = '' - wrapProgram $out/opt/Franz/franz --prefix PATH : ${xdg_utils}/bin + wrapProgram $out/opt/Franz/franz \ + --prefix PATH : ${xdg_utils}/bin \ + "''${gappsWrapperArgs[@]}" ''; meta = with stdenv.lib; { |