Skip to content

osx: Fix building gdk-x11

Jan Tojnar requested to merge wip/jtojnar/gdk-x11-darwin into gtk-3-24

Glib linked against Apple libraries does not provide <gio/gdesktopappinfo.h> header. When building X11 GTK backend on MacOS against such Glib, it fails because it cannot find the header. X11 backend is still required by programs like vim or Emacs.

Let’s use the same trick gtk-launch.c uses to solve this issue.

https://github.com/NixOS/nixpkgs/issues/54424

Merge request reports