0

On Ubuntu 14.04 in order to click on a PDE file and associate processing.

Clicking launches gedit, the default for text files. right clicking on the icon shows the different programs that could be executed, and clicking additional lists a lot more, but not processing.

Processing is at this point installed at:

/opt/processing-3.06b/

so I added that to the path, but that did not add it to the list of applications.

There does not appear to be any way to execute an arbitrary command.

A.B.
  • 90,397
Dov
  • 811

1 Answers1

0

You need a desktop file:

  1. Create a desktop file

    nano ~/.local/share/applications/processing.desktop
    
  2. Add the following entries

    Replace the attribute for Path with a valid icon path and note the %f. That's necessary to open a file in your file manager with this desktop file.

    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=Processing
    Icon=/opt/processing-3.06b/processing.png
    Exec=/opt/processing-3.06b/processing %f
    Comment=Processing is a flexible software sketchbook
    Categories=Development;
    Terminal=false
    StartupWMClass=Processing
    MimeType=text/plain;
  3. Open your file manager and navigate to a PDE file. Open the Properties dialog and the tab Open With. Search the entry Processing in the list and use the button Set as default

    enter image description here

A.B.
  • 90,397