No "Open With.." option for Serna Free SOLVED

Problem


I have installed Serna Free using the RPM installer. When I right-click on an XML file, I don't get the option to "Open With...".

Affects

I discovered this issue in:

  • Serna Free 4.4
  • GNOME 3 Environment

Steps To Reproduce

The following steps reproduce the environment:

  1. Install Serna Free 4.4 using RPM package.
  2. Locate an XML file.
  3. Right-click on the file, and then click Open With -> Other Application

Actual Behavior


There is no Serna Free application present in the list. Furthermore, when you press the SUPER key and begin to type "Serna", only the RPM shows. 

Expected Behavior


There should be an option to open with Serna Free in the menu.

Workaround


There is no .desktop file created when Serna Free installs. To fix this, follow the steps below:
  1. Open a terminal.
  2. cd /usr/share/applications
  3. sudo gedit Serna_Free.desktop
  4. Paste the info at [1] into the file.
  5. Save and Exit.
[1]

[Desktop Entry]
Name=Serna Free XML Editor
GenericName=Serna Free
Comment=Create and Edit XML Documents in a WYSIWYG environment.
Icon=/opt/serna-free-4.4/icons/SernaIcon48.png
Exec="/opt/serna-free-4.4/bin/serna.sh" %U
StartupNotify=true
Terminal=false
Type=Application
MimeType=application/xml
Categories=Editor

Three critical parts to the .desktop file are:
  1. Exec="/opt/serna-free-4.4/bin/serna.sh" %U
    • %U tells Linux that this program should open the path (in this case the selected XML file) as a file.
  2. Type=Application
    • sets the program as an application, and therefore displays in the "Open With..." Menu
  3. MimeType=application/xml
    • application/xml associates this application with XML files correctly
You have read this article .desktop / GNOME 3 / Open With / Serna Free with the title No "Open With.." option for Serna Free SOLVED. You can bookmark this page URL http://azaquery.blogspot.com/2012/04/no-with-option-for-serna-free-solved.html. Thanks!

No comment for "No "Open With.." option for Serna Free SOLVED"

Post a Comment