Nautilus "Open With" option questions

I have an application that will render files with a .hpgl suffix.

I have a HPGLplotter.desktop file in /usr/local/share/applications/ that has the line …

MimeType=application/vnd.hp-hpgl;

however I don’t see the application in the Nautilus “Open With” dialog. When I double click on a file with suffix .hpgl I get the dialog with the message “There is no app installed for “HPGL file” files. Do you want to search for an app to open this file?”. When I search, I get the message “Unable to find the application/vnd.hp-hpgl file format you were searching for.”

How do you tell Nautilus how to open this mimetype?

Also, a few applications seem to be spamming the open file dialog (Okular and Krita particularly). Is there a way to fix this without uninstalling the program?

1 Like

Neither of these commands seem to help

I found the problem.. I left off the %f in the Exec line of the desktop file.

Exec=HPGLplotter %f

It seems that without it the program won’t be added to the Nautilus menu.

3 Likes