Processing is an open-source language and environment for learning the fundamentals of electronic art and computer programming.
Its Linux download package includes a file called processing
that, when run, opens the main Processing IDE.
How can I add this program to the Unity launcher in Ubuntu 13.10?
Install Processing
Once you have downloaded Processing it first needs to be unpacked.
The
processing
file then needs to be copied to/usr/bin
The rest of the files then need to be copied to the
/opt
directory.The tldp website provides a great explanation of why to install to
/opt
Next it needs to be linked to java
And finally to create a link
Create Unity launcher
With Processing now "installed" the launcher can now be made. The Ubuntu website provides a good tutorial of this, which is summarised below. First, create the launcher
And then open it for editing
With the file now open fill it with the following information and save.
With that now saved you should be able to find Processing in the Unity Dash
Upgrading will require you to just copy over the files in /opt/processing with the new ones, though do check that the directory and file structure is the same as before.
Associate .pde files with Processing
Finally, to associate .pde files with Processing - so double-clicking a .pde launches Processing - you need create a new MIME type and associate Processing with that type.
The GNOME dev center provides an explanation of how to create a new MIME type. First, create the new MIME type
Then open it for editing
Put the following data in that file and then save it
Update the MIME database
Finally, associate the new MIME type with Processing. The default applications list is stored in a file called
defaults.list
Add
text/x-processing=processing.desktop
somewhere in that file.Now, when you double-click a .pde file it'll open the file Processing.