Posting for anyone who would like to use
spacenav with freecad on elementary juno.
I first followed the docs here:
https://www.freecadweb.org/wiki/index.p ... ut_devices
To install spacenav on elementary juno:
1. sudo apt-get install spacenavd
2. sudo cp ~/.Xauthority /root/
3. sudo /usr/bin/spnavd_ctl x11 stop
4. sudo /usr/bin/spnavd_ctl x11 start
Then do these steps every time you boot up and login:
1. sudo xhost +
2. sudo /etc/init.d/spacenavd restart
What follows below is
how to start spacenav on startup, so that you don't have to issue the commands every time.
( I brought this over from where I originally posted the question :
https://elementaryos.stackexchange.com/ ... 8141#18141 )
It turned out I did not actually need to use sudo with these commands. That said, something I did, tho I can't re-create it, did allow me to issue the commands preceeded by sudo. I ran the script with the sudo commands and was prompted by a desktop dialogue box to enter my password. If anyone can re-create, this may solve the original question.
What I did was to save the 2 commands (without sudo) in a bash script in my home folder. Then I gave it permissions to be executed by me and my group. Then, in elementary juno, I went to System Settings > Applications > Startup and clicked the + in bottom left to add the script.
This action creates a file in ~/.config/autostart/ with basic info that results in something very similar to my original screenshot, named Custom Command and with a stock icon. I was able to clean up the look by editing basic info in this file, like name, and adding an icon in ~/.local/share/icons/hicolor/128x128/apps/ called spacenavd.png.
Here is how it looks now:
Here is the spacenavd.sh file in my home folder
Code: Select all
#! /bin/bash
xhost +
/etc/init.d/spacenavd restart
The permissions on the script
The dekstop file at ~/.config/autostart/ which I renamed spacenavd.desktop
Code: Select all
[Desktop Entry]
Name[en_US]=Spacenav
Comment[en_US]=3D Controller
Exec=./spacenavd.sh
Icon=spacenavd
X-GNOME-Autostart-enabled=true
Type=Application
And the spacenavd icon ~/.local/share/icons/hicolor/128x128/apps/spacenavd.png