Snapping CUPS Printing Stack: Providing cups-control interface


#1

Hi,

some time ago I have created a snap of the CUPS printing stack:

This snap (also available in the Snap Store) contains CUPS, cups-filters, and Poppler to provide a complete printing stack, working out of the box with driverless-printing-capable printers (most modern printers, the ones where you can print on from a smartphone).

To integrate into all-snap desktop systems this snap should replace the printing stack provided by an underlying classic system, accessible via the cups-control interface.

What do I have to do so that my snap provides the cups-control interface and not the system?


#2

Adjust https://github.com/snapcore/snapd/blob/master/interfaces/builtin/cups_control.go to allow ‘app’ snap types to provide the interface, then add any policy for the slot side to PermanentSlot* and ConnectedSlot*. You might look at how the x11 interface was recently adjusted for precisely this.


#3

@jdstrand, thank you very much, but now I have talked with the snapd team on the Sprint and found a solution.