diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-07-28 13:54:40 +0900 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-03-06 14:53:08 +0100 |
| commit | a2d0f215f21150122ec72c4e35bf038a234a2983 (patch) | |
| tree | 4c59788dc9b33349b021cc10139cd4ab14f08722 | |
| parent | 2e7d3ada3d5672f457f93a51a4c901ea80d40ae3 (diff) | |
gnu: xdg-desktop-portal: Use XDG_DATA_DIRS as search path.
* gnu/packages/freedesktop.scm (xdg-desktop-portal): Delete patches.
[native-search-paths]: Remove XDG_DESKTOP_PORTAL_DIR. Add $XDG_DATA_DIRS.
* gnu/packages/patches/
xdg-desktop-portal-1.20.3-disable-configuration-search-exit.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): De-register it.
Change-Id: I26bde17cde75d1ccf5839d57145d5780b40cda9f
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/freedesktop.scm | 11 | ||||
| -rw-r--r-- | gnu/packages/patches/xdg-desktop-portal-1.20.3-disable-configuration-search-exit.patch | 27 |
3 files changed, 3 insertions, 36 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index e6381f43f3f..b0fcd26a9a6 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2590,7 +2590,6 @@ dist_patch_DATA = \ %D%/packages/patches/x2goclient-fix-makefile.patch \ %D%/packages/patches/x265-arm-flags.patch \ %D%/packages/patches/x265-4-arm-flags.patch \ - %D%/packages/patches/xdg-desktop-portal-1.20.3-disable-configuration-search-exit.patch\ %D%/packages/patches/xdg-desktop-portal-wlr-harcoded-length.patch\ %D%/packages/patches/xf86-video-siliconmotion-fix-ftbfs.patch \ %D%/packages/patches/xfig-Enable-error-message-for-missing-libraries.patch \ diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 07106a43b5c..e4a77e75e37 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -76,6 +76,7 @@ #:use-module (guix build-system python) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system qt) + #:use-module (guix search-paths) #:use-module (gnu packages) #:use-module (gnu packages acl) #:use-module (gnu packages admin) @@ -3214,9 +3215,7 @@ compatible with the well-known scripts of the same name.") version "/xdg-desktop-portal-" version ".tar.xz")) (sha256 (base32 - "1p4yvbhqr8yf231gm69vdz3h7na8m6x1mhiw3bmhg4gm6x4idysb")) - (patches (search-patches - "xdg-desktop-portal-1.20.3-disable-configuration-search-exit.patch")))) + "1p4yvbhqr8yf231gm69vdz3h7na8m6x1mhiw3bmhg4gm6x4idysb")))) (build-system meson-build-system) (arguments (list @@ -3263,11 +3262,7 @@ compatible with the well-known scripts of the same name.") libportal pipewire umockdev)) - (native-search-paths - (list (search-path-specification - (variable "XDG_DESKTOP_PORTAL_DIR") - (separator #f) - (files '("share/xdg-desktop-portal/portals"))))) + (native-search-paths (list $XDG_DATA_DIRS)) (home-page "https://github.com/flatpak/xdg-desktop-portal") (synopsis "Desktop integration portal for sandboxed apps") (description diff --git a/gnu/packages/patches/xdg-desktop-portal-1.20.3-disable-configuration-search-exit.patch b/gnu/packages/patches/xdg-desktop-portal-1.20.3-disable-configuration-search-exit.patch deleted file mode 100644 index 654b40db9e3..00000000000 --- a/gnu/packages/patches/xdg-desktop-portal-1.20.3-disable-configuration-search-exit.patch +++ /dev/null @@ -1,27 +0,0 @@ -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/xdp-portal-impl.c | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - -diff --git a/src/xdp-portal-impl.c b/src/xdp-portal-impl.c -index 8c1fd53..8708409 100644 ---- a/src/xdp-portal-impl.c -+++ b/src/xdp-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 |
