Ubuntu – How to make Master PDF Editor the default for .pdf files

master-pdf-editorpdf

I want to make Master PDF Editor (MPE) the default for opening PDF files. I right-clicked a PDF file, chose Properties > Open With. MPE was not listed. I clicked Show Other Applications but MPE was still not on the list. I tried opening the PDF file with MPE, editing, and then closing it. MPE still did not show up.

So how do I make MPE the default program, or at least appear on the Other Programs or Show Other Programs?

Best Answer

If Master PDF Editor (MPE) is not listed all you need is to create a MasterPdfEditor.desktop file. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

gksudo gedit /usr/share/applications/MasterPdfEditor.desktop

Copy and paste the following, and then save and close the file. (Note that the *.desktop files should be in /usr/share/applications).

[Desktop Entry]
Name=Master PDF Editor
Comment=PDF and XPS files editor
Exec=/opt/master-pdf-editor/master-pdf-editor %f
Path=/opt/master-pdf-editor
Icon=/opt/master-pdf-editor/master-pdf-editor.png
Type=Application
StartupNotify=false
Terminal=false
Categories=PDF Editor;XPS Editor;Office;Utility;Text Editor;

Then

Right click on the PDF file --> Open With --> Open With Other Application

enter image description here

If you don't see Master PDF Editor in the list, click on Show Other Applications

enter image description here

Scroll down to Master PDF Editor, highlight it, and click on Use as Default.

enter image description here