We have finally made it!
The “cups
” interface is now live!
See the launch post with usage instructions, how it works, and everything you need to know.
The interface is principally working now but to make it perfect there will be done the following improvements on snapd in the next few months:
- Let snapd directly auto-install the CUPS Snap when we are installing a Snap which plugs
cups
, without the currently used placeholder content interface. This way a snapper only needs to addcups
to the plugs of an app so that it can print, nothing more. No ugly content interface entry needs to be added then. - Let snapd be able to set environment variables triggered by plugging a given interface (and remove them if the interface is not plugged any more). This way we can get rid of the current workaround of checking for the bind mount on
/var/cups/
and we can set environment variables also for other interfaces, where the use of them cannot get detected that easily.
Thanks
@mvo thanks a lot for your cooperation with me to debug the CUPS_SERVER environment variable issue, for posting the PR, and for adding the long-term TODOs to the current developemnt cycle, and thanks @cachio, @mardy, and @pstolowski for approving the PR so quickly. Thanks again, especially to @ijohnson and @jamesh, but also to @pedronis, @alexmurray, @mardy, and Michael Sweet, for their contributions to get the interface designed and implemented.