flathub-infra / linux-store-frontend

A web application to browse and install applications present in Flatpak repositories. Powers https://www.flathub.org
Apache License 2.0
190 stars 50 forks source link

Show addons #47

Open TingPing opened 6 years ago

TingPing commented 6 years ago

For example:

screenshot from 2018-03-14 19-15-10

jgarciao commented 6 years ago

I guess I can obtain this information from this entry in the appdata:

<component type="addon">
    <id>io.github.Hexchat.Plugin.Perl</id>
    <name>Perl Scripting</name>
    <summary>Scripting interface for Perl</summary>
    <project_license>GPL-3.0+</project_license>
    <url type="homepage">https://hexchat.github.io/</url>
    <extends>io.github.Hexchat.desktop</extends>
    <bundle type="flatpak" sdk="org.gnome.Sdk/x86_64/3.26">runtime/io.github.Hexchat.Plugin.Perl/x86_64/2</bundle>
</component>
somas95 commented 6 years ago

In the meantime another line could be added to the "command line instructions" section of the pages whose applications have extensions: image

allanday commented 6 years ago

It's worth remembering that Flathub doesn't know which add-ons a user has installed. A list of install buttons for application add-ons could be frustrating to use.

somas95 commented 6 years ago

Why it would need to know which add-ons are installed? It also doesn't know which apps are installed and the list of install buttons for applications isn't frustrating to use. Also, the number of add-ons any typical application has is pretty low, and in any case even listing them in a separate category outside the application pages they extend is better than don't listing them at all

allanday commented 6 years ago

Why it would need to know which add-ons are installed?

It's easier to verify which apps you have installed, compared with add-ons.

the number of add-ons any typical application has is pretty low

Checking here, GIMP has 14, Blender has 2, gedit has 20, Nautilus has 4, Thunderbird has 3. On that basis, there's a fairly wide range in the number of add-ons.

even listing them in a separate category outside the application pages they extend is better than don't listing them at all

I don't think I suggested not listing them. Just pointing out that we need to be careful about introducing functionality that might turn out to be poorly supported.

hfiguiere commented 4 years ago

Now that there are more plugins, like Linux audio, this would be an awesome feature to have.

hfiguiere commented 4 years ago

For the numbers of Linux Audio, as of right now:

And the list is growing.

Applications that support any of these kinds: 10 at least.

hfiguiere commented 4 years ago

Checking here, GIMP has 14, Blender has 2, gedit has 20, Nautilus has 4, Thunderbird has 3. On that basis, there's a fairly wide range in the number of add-ons.

Not sure where you got the GIMP from, because the GIMP Plugins were just merged this morning for flathub availability.

There are currently 5 GIMP plugins.

Jehan commented 4 years ago

Extension also have appdata, which could potentially contain screenshots, nice descriptions and more. So it would be nice for these extensions to have their own page on flathub.

Then the page of the parent application would only contain a list of the extensions with name and short description (<summary> tag contents) and a link to go to the specific extension page (with more detailed description, changelog, screenshots, website links, etc. Just like a standalone application basically).

And the "Install" button will be on each individual extension page. After thinking a bit, I'm not sure that we should encourage any "install all at once without thinking" behavior. Plug-ins are still real applications, made by third party. This should be clear to people and I think that encouraging reading about an application (any, even as plug-in of another), its license, and maybe looking up its website and such is the better way. Encourage informed choices in other words.

Then people are welcome to just do speed clicks if they don't care at all, but at least the platform gives them a choice. A list with only name/summary where you can directly install on the main application page (like in GNOME Software) makes it look like the extensions are made by the same developers and don't allow informed choices.

hfiguiere commented 4 years ago

This shouldn't be based exclusively on the appstream data. While it is valid for GIMP plugins, in the case of Linux Audio plugins, it is important to use the extension point listed in the package metadata as the appstream only list the base app which is just an empty app.

jakobjakobson13 commented 3 years ago

Hi. I just wondered if there was any progress on this issue?

The reason for my curiousity is the following: I recently filed a bug against firefox because I was not aware that the ffmpeg was a optional dependency of firefox. If I would have known that or if flathub.com or Gnome software had shown me that ffmpeg is an optional extension of firefox that does not get installed by default, I would have installed it manually and had not filed the bug report.

So is there any way to show the extensions of a package on flathub.com? Or to install such optional depencies by default? I did not find the suitable command.

Edit: After some more research I think that is probably also related to the firefox manifest. But the extension of Gnome games is nonetheless not listed on flathub.org.

razzeee commented 2 years ago

For reference https://github.com/flathub/backend/pull/86 https://github.com/flathub/frontend/pull/128