gnome3.mutter328: hardcode path to zenity

This commit is contained in:
worldofpeace 2019-03-31 19:38:51 -04:00
parent 874856a228
commit c4df83279e
2 changed files with 21 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ fetchFromGitLab, stdenv, fetchpatch, pkgconfig, gnome3, intltool, gobject-introspection, upower, cairo
{ fetchFromGitLab, stdenv, substituteAll, pkgconfig, gnome3, intltool, gobject-introspection, upower, cairo
, glib, gtk3, pango, cogl, clutter, libstartup_notification, zenity, libcanberra-gtk3
, gsettings-desktop-schemas, gnome-desktop
, libtool, makeWrapper, xkeyboard_config, libxkbfile, libxkbcommon, libXtst, libinput
@ -16,6 +16,13 @@ stdenv.mkDerivation rec {
sha256 = "1rmc1bf80yq776xhygi1jzgia1y44j2mr2n94vlxgzqc0whamx2v";
};
patches = [
(substituteAll {
src = ./fix-paths-328.patch;
inherit zenity;
})
];
configureFlags = [
"--with-x"
"--disable-static"

View File

@ -0,0 +1,13 @@
diff --git a/src/core/util.c b/src/core/util.c
index 5b8de18c7..546352a95 100644
--- a/src/core/util.c
+++ b/src/core/util.c
@@ -635,7 +635,7 @@ meta_show_dialog (const char *type,
args = g_ptr_array_new ();
- append_argument (args, "zenity");
+ append_argument (args, "@zenity@/bin/zenity");
append_argument (args, type);
if (display)