Shortcut for processing in Ubuntu 13.10 and Unity

Ι Installed rocessing in the Ubuntu 13.10 but I have to open it from console, is any instractions to create a shortcut to Unity.

Answers

  • edited November 2013 Answer ✓

    I have ~/.local/share/applications/processing.desktop which contains:

    [Desktop Entry]
    Name=Processing
    Comment=Processing
    Exec=launchProcessingFile %F
    Terminal=false
    Type=Application
    Icon=processing
    Categories=GNOME;Graphics;
    StartupNotify=true
    

    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)

    #!/bin/bash
    /home/YOURUSERNAME/Desktop/edu/processing-2.1/processing "$1"
    

    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!

  • Answer ✓

    Ah yes, I copied the icon from processing-2.1/lib/icons/pde-48.png to /usr/share/pixmaps/processing.png

  • Categories=GNOME;Graphics;

    "Graphics" category? Shoulda been "Programming"! It's not GIMP or Photoshop! >:)

  • [Desktop Entry]
    Name=Processing
    Comment=Processing
    Exec=launchProcessingFile %F
    Terminal=false
    Type=Application
    Icon=processing
    Categories=GNOME;Programming;
    StartupNotify=true
    

    Do you think is the correct?

  • edited July 2020 Answer ✓
    [Desktop Entry]
    Encoding=UTF-8
    Version=1.0
    Name=Processing 2
    Name[en_US]=Processing 2
    Comment=Processing
    Comment[en_US]=Processing
    Type=Application
    Categories=Programming
    Exec=/home/goto/processing-2.0.2/processing %F
    Icon=/home/goto/processing-2.0.2/lib/icons/pde-512.png
    Terminal=false
    StartupNotify=true
    
  • Categories=GNOME;Graphics;
    

    "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?

  • 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

Sign In or Register to comment.