flatpak / flatpak

Linux application sandboxing and distribution framework
https://flatpak.org
GNU Lesser General Public License v2.1
4.19k stars 397 forks source link

Flatpak info: List available extensions for a runtime #1815

Open bastianilso opened 6 years ago

bastianilso commented 6 years ago

Hi,

I was recently trying to install the debug extension to the org.gnome.Platform runtime. It would be useful if flatpak info org.gnome.Platform would list what extensions are available for that runtime.

mwleeds commented 6 years ago

We do have a --show-extensions option for flatpak info, but it doesn't seem to list a debug extension for org.gnome.Platform/x86_64/3.28. Are you sure that exists?

bastianilso commented 6 years ago

ah I see.. might be useful to have an aggregated summary in flatpak info org.___.___ like so:

Ref: runtime/org.gnome.Platform/x86_64/master ID: org.gnome.Platform Arch: x86_64 Branch: master Origin: gnome-nightly Collection ID: Date: 2018-02-24 10:17:10 +0000 Subject: build of org.gnome.Sdk, Sat Feb 24 08:28:04 UTC 2018 Commit: 2f0e5cfbb68d1b3aa6cdf7645e678e1d6a6bd04242f19edf7d3daacdbf34579b Parent: d1e9fb741ca42300de4efb369138d9c17e30030f1d2631b80d65ae8a09a3143c Location: /home/bastian/.local/share/flatpak/runtime/org.gnome.Platform/x86_64/master/2f0e5cfbb68d1b3aa6cdf7645e678e1d6a6bd04242f19edf7d3daacdbf34579b Installed size: 799,0 MB Extensions: 4 available, 1 installed (use --show-extensions for more information)

This also makes the "--show-extension" extension more visible for exploration.

uajain commented 5 years ago

hmm, You can look it via flatpak remote-info --show-metadata more accurately.

[uajain@localhost flatpak]$ flatpak remote-info --show-metadata flathub org.gnome.Platform//3.32
[Runtime]
name = org.gnome.Platform
runtime = org.gnome.Platform/x86_64/3.32
sdk = org.gnome.Sdk/x86_64/3.32

[Environment]
GI_TYPELIB_PATH = /app/lib/girepository-1.0
GST_PLUGIN_SYSTEM_PATH = /app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
XDG_DATA_DIRS = /app/share:/usr/share:/usr/share/runtime/share:/run/host/share

[Extension org.gnome.Platform.Locale]
directory = share/runtime/locale

[Extension org.freedesktop.Platform.GL]
versions = 18.08;1.4
version = 1.4
directory = lib/x86_64-linux-gnu/GL
subdirectories = true
no-autodownload = true
autodelete = false
add-ld-path = lib
merge-dirs = vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors
download-if = active-gl-driver
enable-if = active-gl-driver

[Extension org.freedesktop.Platform.Timezones]
directory = share/zoneinfo
version = 18.08

[Extension org.freedesktop.Platform.GStreamer]
directory = lib/extensions/gstreamer-1.0
subdirectories = true
version = 18.08

[Extension org.freedesktop.Platform.Icontheme]
directory = share/runtime/share/icons
subdirectories = true
no-autodownload = true
version = 1.0

[Extension org.gtk.Gtk3theme]
directory = share/runtime/share/themes
subdirectories = true
subdirectory-suffix = gtk-3.0
no-autodownload = true
version = 3.22
download-if = active-gtk-theme

[Extension org.freedesktop.Platform.VAAPI.Intel]
directory = lib/x86_64-linux-gnu/dri/intel-vaapi-driver
autodelete = false
no-autodownload = true
download-if = have-intel-gpu
version = 18.08

[Extension org.freedesktop.Platform.html5-codecs]
directory = lib/x86_64-linux-gnu/ffmpeg
add-ld-path = lib
autodelete = false
version = 18.08

[uajain@localhost flatpak]$