I add the gnome-3-24-platform plug in the app section and also set after: [desktop-gnome-platform] in parts. Now if I just change the plug declaration to the gnome-3-26-1604 example above the snap will build, but on installation it still complains about the need to connect to gnome-3-24 since desktop-gnome-platform seems to rely on that.
Am I doing this wrong? Is there an updated version of desktop-gnome-platform needed or do I even need this at all?
In general I find it hard to find any info on this, the only thing having at least some documentation on using the content snap is https://wiki.ubuntu.com/snapcraft/parts, and even this is not very clear.
Thanks, it actually works. I think I was just confused by the default error message when running without connection, which said it needed a connection to gnome-platform with the following error message:
You need to connect this snap to the gnome platform snap.
You can do this with those commands:
snap install gnome-3-24
snap connect peek:gnome-3-24-platform gnome-3-24:gnome-3-24-platform
Also, for people to be able to easily install Peek on Ubuntu, there needs to be an Ubuntu Software GUI for installing platform snaps. At the moment if someone tries to install Peek from Ubuntu Software and then run it graphically (from Ubuntu Software or from the Dash) it simply won’t load.
@Ads20000 This is being fixed already. The content interface has a default-provider attribute which will be automatically downloaded if the interface has no other local connection options.
I’m not quite sure what you mean by that, bit too technical for me! But when is this being fixed, with the release of snapd 2.28 or is this perhaps fixed in revision 17 of the GNOME platform snap?
Actually I think I get it, just took me a while to get my head round it: if there’s no other provider for the gnome-3-26-1604content on the system then default-provider specifies where to get that content from and it’s downloaded and auto-connected. Sounds great!
Don’t suppose you have a pointer to that piece of work? I just tried to install a snap (tetravex) on my artful system and it was a bit cryptic that it installed but I couldn’t launch it, because I had to install the platform snap and then connect it manually. The only place this was shown (that I could find) was in the journal.
Fwiw, if you use the “edge” core snapd should download content snaps automaticall if the snap that needs them sets the “default-provider” in snap.yaml.
@mvo Should this actually work now? I have installed gradio from @haeckerfelix which seems to be setup correctly, but it doesn’t auto-download the platform snap.
Any update/ETA on this? The question keeps coming up for desktop snaps that require the gnome-3-26-1604 platform snap, and when not run from a terminal the apps fail to launch, completely silently, which makes for a bad user experience.
The lack of auto-installation of platform snaps (or an easy-to-use GUI in software centers for doing so) was one of the reasons for @phw dropping Peek snaps