unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#73520] [PATCH 0/2] Potential fix for the latest xdg-desktop-portal
@ 2024-09-27 19:17 Rodion Goritskov
  2024-09-28  7:41 ` [bug#73520] [PATCH 1/2] gnu: xdg-desktop-portal-next: Fix configuration file search Rodion Goritskov
  2024-09-28  7:41 ` [bug#73520] [PATCH 2/2] gnu: xdg-desktop-portal: Update to 1.18.4 Rodion Goritskov
  0 siblings, 2 replies; 3+ messages in thread
From: Rodion Goritskov @ 2024-09-27 19:17 UTC (permalink / raw)
  To: 73520; +Cc: Rodion Goritskov

Hello!

The problem with the xdg-desktop-portal is due to the configuration changes introduced in this commit [1].
Now it relies on using the configuration file to decide which xdg-desktop-portal implementation to use. However, as Guix uses XDG_DESKTOP_PORTAL_DIR to specify the portal (not the xdg-portal-configuration) directory, the newest xdg-desktop-portal skip configuration search at all [2].
If we patch the process of configuration search a little bit - just to continue searching in case the XDG_DESKTOP_PORTAL_DIR is specified, but doesn't contain any {*}-portals.conf files (our case), we will have the right configuration files (at least for KDE I have tested this changes on) to be read by xdg-desktop-portal according to priorities (XDG_DATA_DIRS in our case) [3] (so they could be even overridden in users' home directory).

It's a bit hacky, but works fine.

[1]: https://github.com/flatpak/xdg-desktop-portal/commit/939f0b0fcec6a42c1acdc397986547e9805359ff
[2]: https://github.com/flatpak/xdg-desktop-portal/blob/1b5a16932493324fa0f21cfb1c3f9c1d16cb6a19/src/portal-impl.c#L441
[3]: https://github.com/flatpak/xdg-desktop-portal/blob/main/doc/portals.conf.rst.in

Rodion Goritskov (2):
  gnu: xdg-desktop-portal-next: Fix configuration file search.
  gnu: xdg-desktop-portal: Update to 1.18.4.

 gnu/local.mk                                  |  1 +
 gnu/packages/freedesktop.scm                  | 77 ++++++-------------
 ...al-disable-configuration-search-exit.patch | 28 +++++++
 gnu/packages/telegram.scm                     |  2 +-
 4 files changed, 55 insertions(+), 53 deletions(-)
 create mode 100644 gnu/packages/patches/xdg-desktop-portal-disable-configuration-search-exit.patch


base-commit: 9a141b5bd633227ea31776b9ce7ca40928de2442
-- 
2.46.0





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-28  7:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 19:17 [bug#73520] [PATCH 0/2] Potential fix for the latest xdg-desktop-portal Rodion Goritskov
2024-09-28  7:41 ` [bug#73520] [PATCH 1/2] gnu: xdg-desktop-portal-next: Fix configuration file search Rodion Goritskov
2024-09-28  7:41 ` [bug#73520] [PATCH 2/2] gnu: xdg-desktop-portal: Update to 1.18.4 Rodion Goritskov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).