mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 13:12:26 +00:00
fix(desktop): install effective AppImage launcher fields (#12191)
This commit is contained in:
1 parent
94129cadcd
commit
4e4e99864e
7 files changed
+169
-51
No files matched your search
@@ -205,10 +205,13 @@ refused unless its SHA-256 is the one named, and unpacked by a root build
|
||||
step, `install-download.sh`, under `/opt/rea-apps/<desktop_entry>`; the
|
||||
export writes the same step. An AppImage is extracted with its own
|
||||
`--appimage-extract`, so no FUSE is needed, and the step installs the image's
|
||||
own `<desktop_entry>.desktop` under `/usr/local/share/applications` with
|
||||
each `Exec` program replaced by the image's `AppRun`, after any `env` prefix
|
||||
and its assignments, without `TryExec`, and its icon; an image without that entry fails the build, naming the entries it
|
||||
has. A tarball is read with Python's `tarfile`, since the computer has no
|
||||
own `<desktop_entry>.desktop` under `/usr/local/share/applications`. It replaces
|
||||
the effective `Exec` program in the main group and each desktop action with the
|
||||
image's `AppRun`, preserving any `env` prefix and its assignments. It removes
|
||||
main-group `TryExec` declarations and installs the main group's effective icon.
|
||||
Repeated declarations follow GLib's last-key rule. An image missing the
|
||||
requested desktop entry fails the build and lists the entries it has. A
|
||||
tarball is read with Python's `tarfile`, since the computer has no
|
||||
`xz` program, so gzip, bzip2 and xz archives work. Its `data` filter refuses
|
||||
links that point outside the folder, absolute ones included, and special
|
||||
files, so such an archive fails the build. Its `program` is a path
|
||||
|
||||
Reference in new issue
Block a user