diff options
| author | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-06-09 04:44:02 +0200 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-06-09 05:02:50 +0200 |
| commit | 2d418933a46a92a545ccebe629470af0fc019c4b (patch) | |
| tree | 474db8fbfbe72ce3a287305e0a27ec2f11142727 /gnu | |
| parent | 47dba6b269858e8628d63a5fd5df07c91fb91b5a (diff) | |
gnu: flatpak: Simplify and document.
* gnu/packages/package-management.scm (flatpak)[native-search-paths]: Add
comment.
<file-pattern>: Remove.
Change-Id: I610939d4bd96e5c952695d76265d568e7b69433b
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/package-management.scm | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 25224b8eb6e..39abd18bd7a 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm | |||
| @@ -2214,11 +2214,19 @@ cp -r /tmp/locale/*/en_US.*"))) | |||
| 2214 | libseccomp | 2214 | libseccomp |
| 2215 | libxau)) | 2215 | libxau)) |
| 2216 | (native-search-paths | 2216 | (native-search-paths |
| 2217 | (list (search-path-specification | 2217 | (list ;; Flatpak creates desktop files on its own. |
| 2218 | ;; If those desktop files contain DBusActivatable=true, the application | ||
| 2219 | ;; will be invoked by using dbus activation. But dbus activation | ||
| 2220 | ;; doesn't use $PATH but rather does execve while the working directory | ||
| 2221 | ;; is "/". That means, if the Exec entry contains just "flatpak", | ||
| 2222 | ;; that won't be ever found. | ||
| 2223 | ;; When flatpak creates desktop files, it uses a path from | ||
| 2224 | ;; $FLATPAK_BINARY if set. | ||
| 2225 | ;; See <https://codeberg.org/guix/guix/issues/438>. | ||
| 2226 | (search-path-specification | ||
| 2218 | (variable "FLATPAK_BINARY") | 2227 | (variable "FLATPAK_BINARY") |
| 2219 | (separator #f) | 2228 | (separator #f) |
| 2220 | (files '("bin")) | 2229 | (files '("bin/flatpak")) |
| 2221 | (file-pattern "^flatpak$") | ||
| 2222 | (file-type 'regular)))) | 2230 | (file-type 'regular)))) |
| 2223 | (home-page "https://flatpak.org") | 2231 | (home-page "https://flatpak.org") |
| 2224 | (synopsis "System for building, distributing, and running sandboxed desktop | 2232 | (synopsis "System for building, distributing, and running sandboxed desktop |
