Ubuntu 12.10: Launch pde files from Nautilus
in
Integration and Hardware
•
6 months ago
I didn't find any solution for this on the internet, so I came up with my own and thought I'd share in case anyone's having the same issue.
Nautilus in Ubuntu 12.10 doesn't allow you to create your own custom execution script (unlike earlier versions). The workaround is normally to create a desktop entry in /usr/share/applications/ called processing.desktop with contents something like the following:
In Nautilus, right-click any pde file. Choose Properties. Click on the "Open With" tab, then "Show Other Applications" and select Processing from the list. Click "Set as Default", then close. pde files should now open with Processing by default!
Nautilus in Ubuntu 12.10 doesn't allow you to create your own custom execution script (unlike earlier versions). The workaround is normally to create a desktop entry in /usr/share/applications/ called processing.desktop with contents something like the following:
- $ sudo gedit /usr/share/applications/processing.desktop
- [Desktop Entry]
Name=Processing
Comment=Processing
Exec=/home/paul/.processing-2.0.8 %F
Terminal=false
Type=Application
Icon=processing
Categories=GNOME;Graphics;
StartupNotify=true
- [Desktop Entry]
Name=Processing
Comment=Processing
Exec=launchprocessingflile %F
Terminal=false
Type=Application
Icon=processing
Categories=GNOME;Graphics;
StartupNotify=true
- $ cd
- $ gedit launchprocessingfile
- #!/bin/bash
/home/paul/.processing-2.0.8/processing $1
- $ chmod a+x launchprocessingfile
- $ ./launchprocessingfile /home/paul/sketchbook/bounce/bounce.pde
- $ sudo mv launchprocessingfile /usr/local/sbin/
- $ echo $PATH
In Nautilus, right-click any pde file. Choose Properties. Click on the "Open With" tab, then "Show Other Applications" and select Processing from the list. Click "Set as Default", then close. pde files should now open with Processing by default!
1