Removable-media is disabled

i am created the snap package with a plugin removable-media, bud this plugin not connected

snapcraft.yaml

#
# Copyright (C) 2018-2019 QuasarApp.
# Distributed under the lgplv3 software license, see the accompanying
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
#

name: cqtdeployer # you probably want to 'snapcraft register <name>'
version: '1.2.3.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: deploy your qt projects # 79 char long summary
description: |
  Console app for deploy qt libs.
  Key differences of this program
  Performance-this program deploys the application several times faster (up to 10 seconds)
  Flexibility-this application has flags that will help you configure the deployment as you need and your project

grade: stable # must be 'stable' to release into candidate/stable channels
confinement: strict # use 'strict' once you have the right plugs and slots
base: core18

apps:
  cqtdeployer:
    command: desktop-launch $SNAP/cqtdeployer.sh

    plugs: [home, removable-media]

parts:
  cqtdeployer:
    # See 'snapcraft plugins'

    plugin: dump
    source: installer/packages/cqtdeployer/data/

    after: [cqtdeployer-wrapper]
  cqtdeployer-wrapper:
    plugin: dump
    source: QuasarAppLib/Etalons/snap/wrapper

in snap store show only home plugin

andrei@xenon:~$ snap connections cqtdeployer
Interface        Plug                         Slot   Notes
home             cqtdeployer:home             :home  -
removable-media  cqtdeployer:removable-media  -      -
andrei@xenon:~$ 

Why?
And how to set autoconnect to removable-media for my snap package ?

What happens if you do

snap connect cqtdeployer:removable-media

? (tab completion should help you type it out)

all work

andrei@xenon:~$ snap connect cqtdeployer:removable-media
andrei@xenon:~$ snap connections cqtdeployer
Interface        Plug                         Slot              Notes
home             cqtdeployer:home             :home             -
removable-media  cqtdeployer:removable-media  :removable-media  manual
andrei@xenon:~$ 

@chipaca
This seems to be a snap store error. Where can I write about this error error?

@robert.ancell what say you?

@chipaca I corrected my message

I’ve tried installing the cqtdeployer snap (local and edge, revisions 55 and 56) but neither of them seem to be using the removable-media interface (either via command line or snap-store). The chromium snap uses this interface and it does show in snap-store.

Is there another version I should be trying?

Both of these versions require removable-media to work correctly.

name: cqtdeployer
version: 1.2.3.1
summary: deploy your qt projects
description: |
  Console app for deploy qt libs.
  Key differences of this program
  Performance-this program deploys the application several times faster (up to 10 seconds)
  Flexibility-this application has flags that will help you configure the deployment as you need and your project
base: core18
architectures:
- amd64
confinement: strict
grade: stable
apps:
  cqtdeployer:
    command: command-cqtdeployer.wrapper
    plugs:
    - home
    - removable-media

Are you saying that you have cqtdeployer 55 and 56 do not require removable-media?
Show me pleas your snap.yaml of cqtdeployer

/snap/cqtdeployer/current/meta/snap.yaml

Because cqtdeployer requires removable-media and it is written in snapcraft.yaml. The problem is that there is no corresponding checkbox in the snap store.

Oh, I was using

$ snap connections

and it wasn’t showing there. But if I use the following it shows:

$ snap connections cqtdeployer
Interface        Plug                         Slot   Notes
home             cqtdeployer:home             :home  -
removable-media  cqtdeployer:removable-media  -      -

It looks like snap-store isn’t using the new connections API correctly (it will be doing the former instead of the latter).

1 Like

okay
it is bug of the snap-store or my yaml file ?

It’s a bug in the snap-store, I’ll fix it. Sorry for the confusion!

thanks)
I decided to check my application again and now everything is displayed correctly. Could this be due to the fact that I manually connected a removable-media?

Yes, once it is connected it will show up, but until then it won’t show.

1 Like

@robert.ancell thanks for the help

Fixed in snap-store.

1 Like