epiphany: Fix startup crash on Pantheon

* gdk_display_manager_get() was called before gtk_init()
* gtk_menu_button_set_icon_name: assertion 'GTK_IS_MENU_BUTTON (menu_button)' failed
This commit is contained in:
Bobby Rong 2025-05-17 19:29:47 +08:00
parent e06158e58f
commit 353c718f02
No known key found for this signature in database

View file

@ -5,6 +5,7 @@
ninja,
gettext,
fetchurl,
fetchpatch,
pkg-config,
gtk4,
glib,
@ -44,6 +45,22 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-2ilT5+K3O/dHPAozl5EE15NieVKV6qCio46hiFN9rxM=";
};
patches = [
# shell: Fix startup crash on Pantheon
# https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1818
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/epiphany/-/commit/da4437beb7f1fbc9c2fa3d4629b8c826d484835e.patch";
hash = "sha256-meufd5gnhLcK0dgIXEMDnid9e1R2M1D3jZ9Yoh6YobM=";
})
# action-bar-end: Fix startup crash on Pantheon
# https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1819
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/epiphany/-/commit/d69866854b315123c8832fae58c6de008da20ea0.patch";
hash = "sha256-GnZQC4rtBYRr+x9mF8pCFDcDOjEJj+27ECdXBNL42kQ=";
})
];
nativeBuildInputs = [
desktop-file-utils
gettext