flatpak-builder icon indicating copy to clipboard operation
flatpak-builder copied to clipboard

Extension doesn't work with appstraem-compose

Open wengxt opened this issue 5 years ago • 2 comments

Linux distribution and version

Archlinux

Flatpak-builder version

1.0.11

Flatpak version

1.8.3

Description of the problem

appstream-compose doesn't work with extension

Steps to reproduce

Create an extesnion, the prefix will be /app/[some directory]/[Extension name] instead of /app. https://github.com/flatpak/flatpak-builder/blob/a69dbe93b571893c9f1fbbfb5c8b0ae040c8d384/src/builder-manifest.c#L2757 This line hard code it to be /usr or /app, so when you build a extension Error loading AppData file: no file found for [.....] would show up

wengxt avatar Nov 22 '20 22:11 wengxt

I believe extensions generally specify appstream-compose: false anyway...

On Sun, Nov 22, 2020 at 4:10 PM Weng Xuetian [email protected] wrote:

Linux distribution and version

Archlinux Flatpak-builder version

1.0.11 Flatpak version

1.8.3 Description of the problem

appstream-compose doesn't work with extension Steps to reproduce

Create an extesnion, the prefix will be /app/[some directory]/[Extension name] instead of /app.

https://github.com/flatpak/flatpak-builder/blob/a69dbe93b571893c9f1fbbfb5c8b0ae040c8d384/src/builder-manifest.c#L2757 This line hard code it to be /usr or /app, so when you build a extension Error loading AppData file: no file found for [.....] would show up

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/flatpak/flatpak-builder/issues/368, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM4YSOJGY4BX2KPCQKN5DLSRGD4FANCNFSM4T6YGGJA .

refi64 avatar Nov 24 '20 05:11 refi64

Here’s a real life example that an extension want to use appstream-compose, but have to manually execute appstream-compose in post-install.

https://github.com/flathub/org.gimp.GIMP.Plugin.Resynthesizer/blob/639782fd175e1bd16b34a2327016d42355eb529e/org.gimp.GIMP.Plugin.Resynthesizer.json#L29

Also, appstream data supports the concept of addons, so I think it totally makes sense that an extension project to use appstream-compose. https://www.freedesktop.org/software/appstream/docs/sect-Quickstart-Addons.html

wengxt avatar Nov 24 '20 16:11 wengxt