gnu: flatpak: Simplify and document.

* gnu/packages/package-management.scm (flatpak)[native-search-paths]: Add
comment.
<file-pattern>: Remove.

Change-Id: I610939d4bd96e5c952695d76265d568e7b69433b
This commit is contained in:
Danny Milosavljevic 2025-06-09 04:44:02 +02:00
parent 47dba6b269
commit 2d418933a4
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -2214,11 +2214,19 @@ cp -r /tmp/locale/*/en_US.*")))
libseccomp
libxau))
(native-search-paths
(list (search-path-specification
(list ;; Flatpak creates desktop files on its own.
;; If those desktop files contain DBusActivatable=true, the application
;; will be invoked by using dbus activation. But dbus activation
;; doesn't use $PATH but rather does execve while the working directory
;; is "/". That means, if the Exec entry contains just "flatpak",
;; that won't be ever found.
;; When flatpak creates desktop files, it uses a path from
;; $FLATPAK_BINARY if set.
;; See <https://codeberg.org/guix/guix/issues/438>.
(search-path-specification
(variable "FLATPAK_BINARY")
(separator #f)
(files '("bin"))
(file-pattern "^flatpak$")
(files '("bin/flatpak"))
(file-type 'regular))))
(home-page "https://flatpak.org")
(synopsis "System for building, distributing, and running sandboxed desktop