i’ve made a snap-package for the popular software “Cura” from Ultimaker. The software needs some connections to run:
netlink-connector
network-manager-observe
mount-observe (*)
removable-media (*)
(*) Optional
“netlink-connector” is needed so that the GUI can communicate with “CuraEngine” which is started by the GUI. Without this connection the GUI cannot slice any model.
“network-manager-observe” is needed for detection of network-connected 3D-printers.
“mount-observe” and “removable-media” are optional. Cura has the feature to store gcode-files directly on an external drive after slicing.
There is also another connection missing. Yesterday i’ve tried to connect my Ender 3 to my Notebook and Cura couldn’t use the USB-connection. The interface " serial-port" is missing.
Currently i’m trying to fix the segfault when Cura is closed. There are problems with PyQt and the multithreading of Python.
But it is unclear if these are all absolutely required and in what use-cases - can you please clarify since I am not familiar with cura-slicer. Thanks.
I will try it. At the moment “netlink-connector” seems the only interface really needed because without it the log gets spammed with “Could not create AF_NETLINK socket (Permission denied)” errors.
The rest of the interfaces are basically optional because they are not needed for Cura when the user is only slicing a STL-file and saving the generated G-Code in its home-directory.
“serial-port” and “network-manager-observe” are needed if you want control your printer over an USB-serial-connection or over the normal network-connection.
“mount-observe” and “removable-media” are only needed when you want to use hotplugging USB-disk-support in Cura. Cura can detect mounted disks and then asks the user if the gcode-file should be saved to this disk instead the normal home-directory.
I thik using the serial connection is a pretty normal/typical use-case for cura though … but you should perhaps take a look at hotlugging for it … IIRC the arduino IDE snap uses it nowadays, stealing the plugs from its snapcaft.yaml for cura might be helpful (and i bet @galgalesh wouldnt mind )
ah, sorry, i just checked and seems i completely mis-remembered. it was raw-usb that was special in the arduino snap, to allow updating the firmware (which you probably want too for cura since it allows this in the UI). hotplug is a feature of the snapd side that should already be there for serial-port …
@glasen77 - quite a bit of discussion and suggestions have happened since your request, but we’ve not heard back. Can you respond and clarify precisely what you want auto-connected after incorporating any suggestions?
Hi,
by typing : sudo snap connect cura-slicer:mount-observ i get this :
error : snap “cura-slicer” has no plug named “mount-observ”
this command worked : sudo snap connect cura-slicer:removable-media
now cura can save directly to USB drives but cannot see the USB monted folder when i want for example to open an .stl form a USB. I have to got through the complete path /media/… and can acces it.
Thanks in adavance