stevenblack-blocklist: 3.15.5 -> 3.15.8 (#372042)
[NixPkgs.git] / pkgs / development / libraries / xdg-desktop-portal / nix-pkgdatadir-env.patch
blobb099c4ad56f5b6a40e44c147b8a0f0d5f5efa24b
1 diff --git a/src/portal-impl.c b/src/portal-impl.c
2 index 85b3a23..6d43636 100644
3 --- a/src/portal-impl.c
4 +++ b/src/portal-impl.c
5 @@ -275,6 +275,8 @@ load_installed_portals (gboolean opt_verbose)
7 /* We need to override this in the tests */
8 portal_dir = g_getenv ("XDG_DESKTOP_PORTAL_DIR");
9 + if (portal_dir == NULL)
10 + portal_dir = g_getenv ("NIX_XDG_DESKTOP_PORTAL_DIR");
11 if (portal_dir == NULL)
12 portal_dir = DATADIR "/xdg-desktop-portal/portals";