Hello everybody,
we are happy to announce that the release of snapd 2.28.1 is now available in the stable channel for the core snap.
See also our roadmap page at The snapd roadmap
Here are some hightlights of the release:
New “post-refresh” hook (topic)
As requested by various users of snapd we now have a new hook called “post-refrsh” that is run after the snap is refreshed. The hook is run after the snap got refreshed but before services are started so it can be useful to do any refresh related housekeeping that might be required.
Initial base snap support (topic)
The new “base” snap allows snaps to select what base filesystem they require. This means that a snap can choose a different base snap than the current “core” snap. In this release we added support for bases and provide an example base snap called “bare” that is empty. If you want to run minimal snaps that are e.g. statically linked you can use the bare snap as a base. We expect more bases to come soon into the store, and there is already work underway to build fedora and opensuse bases. Note that in this release new bases will not be automatically downloaded. This will come in the next 2.29 release of snapd.
Polkit integration (topic)
This is a feature requested by many GUI users. It makes working with graphic package management interfaces more pleasant by providng integration with the “polkit” mechanism of the GUI environment. This means that you can download and install snaps from those applications without having to login into the store, as previously available when operating as root or via sudo in the terminal.
Full xdg-open support via snap userd
(topic)
Another nice feature for GUI users. It allows opening http, https, mailto links directly from confined snaps without the need to install extra software.
Full bash-completion (topic)
We added bash-completion support into snapd 2.27. The feature allows snaps to ship bash completion scripts inside the snap so that snap applications get full completion support on the command line. In 2.27 an extra step to enable it in the shell was required. This step is now elimiated and it’s fully automatic for the user. The only feature missing is support for bash completion of aliases, which are coming soon™.
New snap switch command (topic)
The snap switch
command is a convient way to switch the channel of a snap without refreshing it right away. This is useful in scenarios when you are offline or on a high-cost connection, for example.
Proxy configuration on Core devices (topic)
Core devices may now easily have their system-wide proxies configured via snap set core proxy.{http,https,ftp}=<url>
.
Snap service management (topic)
Snap service management becomes even easier with a new set of commands. The new snap services <snap>
command will show what services a snap has and the status of these services. A short summary of the services is now also included in snap info <snap>
. The services can be started/stopped via the new snap start/stop/restart <snap.app>
command. In addition logs for the given snap are available via snap logs <snap.app>
. All these are exposed via the API as usual so GUI programs may support them as well.
Classic confinement on distributions that do not use the /snap dir (topic)
Some distributions do not use /snap
as the directory to install snap packages. This is usually no problem because snaps can be relocated. However for snaps using “classic” confinement it may be an issue as they may refer to paths under that location. Those are now also available on distributions that use the different directory layout once the user has created a symlink from /snap
to the non-standard snap directory (usually /var/lib/snapd/snap
). The error message also got improved to be more helpful.
and much more …
Complete details are avaliable in the project’s commit history as usual.
We hope you enjoy this release as much as we enjoyed working on it.
– The snapd team