Then somewhere in my path (you can find which folders are in your path typing echo $PATH in your terminal) I have an executable script (I have it on ~/bin/launchProcessingFile)
"Graphics" category? Shoulda been "Programming"! It's not GIMP or Photoshop!
I just copy-pasted the .desktop file without reading any tutorials about how to create one or the meaning of Categories :)
By the way, I was using a .desktop file + a script, and it seems you only use a .desktop file that calls processing directly. Is that sufficient to be able to double click on .pde files and get them opened in Processing?
Answers
I have
~/.local/share/applications/processing.desktop
which contains:Then somewhere in my path (you can find which folders are in your path typing
echo $PATH
in your terminal) I have an executable script (I have it on~/bin/launchProcessingFile
)To make the script executable you can type
chmod +x launchProcessingFile
. The second line in this script must point to the right processing folder.Then I can start Processing from Unity and double click sketches.
I think I also added the icon somehow to one of the system folders...
Cheers!
Ah yes, I copied the icon from
processing-2.1/lib/icons/pde-48.png
to/usr/share/pixmaps/processing.png
"Graphics" category? Shoulda been "Programming"! It's not GIMP or Photoshop! >:)
Do you think is the correct?
I just copy-pasted the .desktop file without reading any tutorials about how to create one or the meaning of Categories :)
By the way, I was using a .desktop file + a script, and it seems you only use a .desktop file that calls processing directly. Is that sufficient to be able to double click on .pde files and get them opened in Processing?
Yup! Exec= is the most important part! :-j
Categories= is only important when a shortcut goes to the main menu, so it is organized in its right place! :bz