diff options
author | Rodion Goritskov <rodion.goritskov@gmail.com> | 2025-03-01 18:20:17 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2025-03-05 14:25:06 +0900 |
commit | 630201dba8f48dce96b0f0d27a668bbd537cda77 (patch) | |
tree | 579af01385511d76dded8818e4652a3a54b1baba /gnu/packages/patches/xdg-desktop-portal-disable-configuration-search-exit.patch | |
parent | 97be0a837e7f069b25dc76f86f7d6510601830f2 (diff) |
gnu: xdg-desktop-portal: Fix configuration file search.
* gnu/local.mk: Add patch.
* gnu/packages/freedesktop.scm (xdg-desktop-portal): Add patch.
* gnu/packages/patches/xdg-desktop-portal-disable-configuration-search-exit.patch: New file
Change-Id: Idd637f5613e7d1403fc3a0feeff53a7931e68fc6
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/packages/patches/xdg-desktop-portal-disable-configuration-search-exit.patch')
-rw-r--r-- | gnu/packages/patches/xdg-desktop-portal-disable-configuration-search-exit.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/patches/xdg-desktop-portal-disable-configuration-search-exit.patch b/gnu/packages/patches/xdg-desktop-portal-disable-configuration-search-exit.patch new file mode 100644 index 0000000000..eba07f8c35 --- /dev/null +++ b/gnu/packages/patches/xdg-desktop-portal-disable-configuration-search-exit.patch @@ -0,0 +1,27 @@ +From 37003d1f99246c88cbe7cf2f83616642e0fdf3fb Mon Sep 17 00:00:00 2001 +From: Rodion Goritskov <rodion.goritskov@gmail.com> +Date: Fri, 27 Sep 2024 00:44:07 +0400 +Subject: [PATCH] portal-impl: Check if there are any configuration files in XDG_DESKTOP_PORTAL_DIR before exiting configuration search + +--- + src/portal-impl.c | 5 ++--- + 1 file changed, 2 insertions(+), 3 deletions(-) + +diff --git a/src/portal-impl.c b/src/portal-impl.c +index 8c1fd53..8708409 100644 +--- a/src/portal-impl.c ++++ b/src/portal-impl.c +@@ -438,9 +438,8 @@ load_portal_configuration (gboolean opt_verbose) + + if (portal_dir != NULL) + { +- load_config_directory (portal_dir, desktops, opt_verbose); +- /* All other config directories are ignored when this is set */ +- return; ++ if (load_config_directory (portal_dir, desktops, opt_verbose)) ++ return; + } + + /* $XDG_CONFIG_HOME/xdg-desktop-portal/(DESKTOP-)portals.conf */ +-- +2.46.0 |