Write access to optical-drive

I’m porting ImgBurn (http://www.imgburn.com/) to snap through wine but I need write permissions in the optical drive.
I configured the snap as follows:

plugs:
    optical-drive-plug:
        interface: optical-drive
        write: yes

 //
 //
 apps:
     imgburn:
         plugs: 
             - optical-drive-plug

When I send it to the store, I manually reject the following error: human review required due to 'deny-connection' constraint for 'plug-attributes' from base declaration declaration-snap-v2_plugs_deny-connection (optical-drive-plug, optical-drive)
The source of my snap for more information is available on Github: https://github.com/ErnyTech/imgburn

What should I do to get write permissions?

Thanks
Ernesto Castellotti

1 Like

optical-drive is provided by the core snap, you can just directly use it from the apps entry, drop the standalone plugs: stuff at the top and make your app use optical-drive like:

apps:
  imgburn:
    command: whatever/command/you/want/to/run/here
    plugs:
      - optical-drive

But this does not give me writing permission on the optical drive, imgburn must be able to burn cd/dvd

talks about a “write” attribute you can set …

(EDIT: oops, sorry ignore that i see you have been using write: yes above)

Rejected by Jamie Strandboge. “This snap is using ‘write: true’ with the optical-drive interface which requires human review. If the access is required, consider using a brand store or create a forum topic at https://forum.snapcraft.io/ using the ‘store’ category if this can be discussed in public or the ‘sensitive’ category if the discussion should remain private. Please feel free to copy and paste this message in the topic. Thanks!” — Jamie Strandboge

@jdstrand thanks for the feedback, we can discuss the issue in this post?

Ernesto Castellotti

+1 to use and auto-connect the optical drive interface for write access.

2 Likes

Thanks, so now I can release the snap?

not yet. We need at least one more plus one to qualify. @reviewers can you please check this request and vote.

+1 from me as reviewer, the software in question is clearly useful only if it can write to the optical drive, and the conversation shows the author is using this judiciously.

  • Daniel
1 Like

2 votes for, 0 against allowing and auto-connecting write-access for optical-drive. This is now live.

@ErnyTech - your next upload should pass automated review. If you’d like an existing revision to be reviewed again, please request a manual review in the store.