Script for creating a menu item for processing

Previously I have seen requests to add processing to menu on the raspberrypi, here I have created a simple script to do just that (requires sudo) on vanilla raspbian. Copy script to say menu.sh, then sudo bash menu.sh.

cat > desktop << EOF
[Desktop Entry]
Type=Application
GenericName=Processing
Name=Processing-3.3.7.2
Comment=Processing-3.3.7.2
Icon=/home/pi/processing-3.3.7.2/lib/icons/pde-256.png
Exec=/home/pi/processing-3.3.7.2/processing
Terminal=false
Type=Application
Categories=Application;Development;
StartupNotify=true
EOF

cat desktop >> /usr/share/applications/processing.desktop
3 Likes