I have a .py script that I want to have the option to open with Spyder when I right-click on the file icon. If I right click on the script and select the "open with another application" command I get a list of programs installed on my computer that I can use to open the file with, however, Spyder is not one of the selected lists.
Spyder appears under my Applications>engineerng tab from the main drop-down menu. in my
/usr/share/applications folder, I have the following Spyder.desktop file
[Desktop Entry] Type=Application Exec=spyder Name=spyder GenericName=Scientific Python Development Environment Comment=A simple and lightweighted python IDE with MATLAB-like features Icon=/home/adowney2/anaconda3/lib/python3.6/site-packages/anaconda_navigator/static/images/spyder-icon-1024x1024.png Terminal=false Categories=Development;IDE;Engineering;Mathematics;