Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access removable media in Snap Linux - No slots option #4252

Closed
vasyl-shumskyi opened this issue Sep 19, 2019 · 10 comments
Closed

Can't access removable media in Snap Linux - No slots option #4252

vasyl-shumskyi opened this issue Sep 19, 2019 · 10 comments
Labels

Comments

@vasyl-shumskyi
Copy link

@vasyl-shumskyi vasyl-shumskyi commented Sep 19, 2019

electron-builder : 21.2.0
electron: 6.0.10


Hello,

To access removable USB media on Linux, plugs and slots needed to be setup with electron-builder.

Here is my configuration:

 "snap": {
      "confinement": "strict", 
      "plugs" : ["default", "removable-media" ],
      "slots" : ["default", "removable-media" ]
    },

As mentioned in electron-builder docs plugs working perfectly.

But looks like there is no option for slots. And removable media can't be accessed without them.

See more info on snap Linux interface management here:
https://snapcraft.io/docs/interface-management


Right now when we access removable media in Snap package we just receive Permission Denied error like this:

Screen Shot 2019-12-27 at 10 17 03

@vasyl-shumskyi
Copy link
Author

@vasyl-shumskyi vasyl-shumskyi commented Oct 15, 2019

@develar whenever you have time, can you please have a look on this?

@Sn8z
Copy link

@Sn8z Sn8z commented Nov 9, 2019

I'm in the same position as @vasyl-shumskyi.
I'm trying to get MPRIS functionality to work correctly in a Snap which, if I'm understanding things correctly, means that I've got to configure a slot for it.
Any feedback on this issue @develar would be greatly appreciated.

Btw, thanks for all the great work you guys put in!

@vasyl-shumskyi
Copy link
Author

@vasyl-shumskyi vasyl-shumskyi commented Nov 28, 2019

@jdstrand could you advice something here as snap developer?
maybe there is some workaround for this issue for electron snap publishers.

@farrisbar
Copy link

@farrisbar farrisbar commented Nov 30, 2019

'slots' support is needed to build graphical electron based snaps for Ubuntu "snappy" core (e.g. kiosk type apps)

@stale
Copy link

@stale stale bot commented Feb 25, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the backlog label Feb 25, 2020
@vasyl-shumskyi
Copy link
Author

@vasyl-shumskyi vasyl-shumskyi commented Feb 25, 2020

It is still relevant.

@stale stale bot removed the backlog label Feb 25, 2020
@stale
Copy link

@stale stale bot commented Apr 25, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the backlog label Apr 25, 2020
@vasyl-shumskyi
Copy link
Author

@vasyl-shumskyi vasyl-shumskyi commented Apr 28, 2020

I think it still relevant. Can devs confirm?

@stale stale bot removed the backlog label Apr 28, 2020
@vasyl-shumskyi
Copy link
Author

@vasyl-shumskyi vasyl-shumskyi commented May 15, 2020

Well, it turned out not be electron-builder issue. But snapd limitation.

Snapd doesn't allow to auto-connect removable-media plug.

Checkout following threads for references:

The only way is to add removable-media plug to electon-builder configuration

"plugs" : ["default", "removable-media" ]

and then connect removable-media manually via Terminal

snap connect snap-name:removable-media

It would be really great if snapd developers make auto-connection of removable media possible.

@stale
Copy link

@stale stale bot commented Jul 14, 2020

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants