Is there a way to prompt users to connect a non-auto-connect interface during installation?

Alberto Mardegan alberto.mardegan at canonical.com
Mon Feb 13 06:49:44 UTC 2017


On 12/02/2017 12:30, Aaron Hampton wrote:
> Hi,
> 
> I am working on snapping a desktop application that needs access to
> hardware-observe. Is there a way to prompt the user to connect the
> interface during the installation of the snap? Or is the only way to
> have the user run snap connect?

While this feature is missing, you could wrap your programs in a shell
script that checks whether the needed permissions are there and, if not,
print a message using zenity to inform the user.

Ciao,
  Alberto





More information about the Snapcraft mailing list