realthunder / FreeCAD_assembly3

Experimental attempt for the next generation assembly workbench for FreeCAD
GNU General Public License v3.0
883 stars 75 forks source link

Spacemouse not working on snap build #1323

Open doucettom opened 10 months ago

doucettom commented 10 months ago

Same exact issue on the vanilla FreeCAD:

https://github.com/FreeCAD/FreeCAD-snap/issues/61

The solution in the issue didn't work.

lbattraw commented 7 months ago

Just adding that under Ubuntu 22.04 this can be fixed by adding the following line to

/var/lib/snapd/apparmor/profiles/snap.freecad-realthunder.freecad-realthunder

unix (connect, send, receive) peer=(addr="@/var/run/spnav.sock"),

I added it at the end of the file (Before the closing brace line). Initially I messed up the syntax, which I was able to find out by running:

sudo systemctl restart snapd.apparmor.service

If there are any issues with the way you added it, the service will fail to start and you can look at the errors with:

sudo journalctl -xeu snapd.apparmor.service