@@ -1,10 +1,12 @@
1−--- a/src/xdg-desktop-portal.c
2−+++ b/src/xdg-desktop-portal.c
3−@@ -177,38 +177,50 @@
4− static void
5− load_installed_portals (void)
1+diff --git a/src/portal-impl.c b/src/portal-impl.c
2+index 4fd48ff..346da7c 100644
3+--- a/src/portal-impl.c
4++++ b/src/portal-impl.c
5+@@ -116,38 +116,50 @@ sort_impl_by_name (gconstpointer a,
6+ void
7+ load_installed_portals (gboolean opt_verbose)
68 {
7−- const char *portal_dir = PKGDATADIR "/portals";
9+- const char *portal_dir = DATADIR "/xdg-desktop-portal/portals";
810- g_autoptr(GFile) dir = g_file_new_for_path (portal_dir);
911- g_autoptr(GFileEnumerator) enumerator = NULL;
1012
@@ -14,7 +16,7 @@
1416+ const char *portal_dir = g_getenv ("XDG_DESKTOP_PORTAL_PATH");
1517+
1618+ if (portal_dir == NULL)
17−+ portal_dir = PKGDATADIR "/portals";
19++ portal_dir = DATADIR "/portals";
1820
1921- if (enumerator == NULL)
2022- return;
@@ -56,7 +58,7 @@
5658- path = g_file_get_path (child);
5759+ name = g_file_info_get_name (info);
5860
59−- if (!register_portal (path, &error))
61+- if (!register_portal (path, opt_verbose, &error))
6062- {
6163- g_warning ("Error loading %s: %s", path, error->message);
6264- continue;
@@ -66,7 +68,7 @@
6668+ child = g_file_enumerator_get_child (enumerator, info);
6769+ path = g_file_get_path (child);
6870+
69−+ if (!register_portal (path, &error))
71++ if (!register_portal (path, opt_verbose, &error))
7072+ {
7173+ g_warning ("Error loading %s: %s", path, error->message);
7274+ continue;