Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Error while opening PDF files

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
PsySc0rpi0n
Posts: 322
Joined: 2012-10-24 13:54
Location: Bitcoin World
Has thanked: 8 times
Been thanked: 1 time

Error while opening PDF files

#1 Post by PsySc0rpi0n »

Hi.

I have recently upgraded to Debian Buster and many of the apps I had before, were uninstalled.
I was using this MasterPDF application to open PDF files and it was removed and now I cannot open PDF files.
When I click on some PDF file I get this error that I want to get rid of. I don't want to install again MasterPDF application.
Image

What are the steps to fix this?

I found this file
~/.local/share/applications/mimeapps.list
which contains:
application/pdf=masterpdfeditor4-2.desktop;
but I don't know if I can just remove this line and that's all. I don't want to mess things up even further!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Error while opening PDF files

#2 Post by stevepusser »

In Dolphin, right-click a pdf file, choose "Open With".
Choose "Other Application" at the bottom.
Click the checkbox to remember your upcoming choice as the default app.
Choose whatever app you want to open the pdf.
MX Linux packager and developer

User avatar
PsySc0rpi0n
Posts: 322
Joined: 2012-10-24 13:54
Location: Bitcoin World
Has thanked: 8 times
Been thanked: 1 time

Re: Error while opening PDF files

#3 Post by PsySc0rpi0n »

stevepusser wrote:In Dolphin, right-click a pdf file, choose "Open With".
Choose "Other Application" at the bottom.
Click the checkbox to remember your upcoming choice as the default app.
Choose whatever app you want to open the pdf.
I know about the GUI way...
I wanted to know about the terminal way and how I would remove associations that are no longer needed such as for MasterPDF editor and others like Mendeley Desktop that I used/tested in the past!

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Error while opening PDF files

#4 Post by Head_on_a_Stick »

PsySc0rpi0n wrote:I found this file
~/.local/share/applications/mimeapps.list
which contains:
application/pdf=masterpdfeditor4-2.desktop;
but I don't know if I can just remove this line and that's all. I don't want to mess things up even further!
It's fine to remove that line but replacing "masterpdfeditor4-2.desktop" with the name of the .desktop file for the program you actually want to use to open PDFs would be a better approach.
deadbang

User avatar
PsySc0rpi0n
Posts: 322
Joined: 2012-10-24 13:54
Location: Bitcoin World
Has thanked: 8 times
Been thanked: 1 time

Re: Error while opening PDF files

#5 Post by PsySc0rpi0n »

Thank you @Head_on_a_Stick

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Error while opening PDF files

#6 Post by stevepusser »

Make sure you edit that file with nano or pico to avoid a GUI text editor!
MX Linux packager and developer

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Error while opening PDF files

#7 Post by Head_on_a_Stick »

No need for bloated command line editors, this will replace every instance of "masterpdfeditor4-2" with "mupdf" without having to go through the file manually like a sucker:

Code: Select all

sed -i 's/masterpdfeditor4-2/mupdf/' ~/.config/mimeapps.list
:mrgreen:
deadbang

Wheelerof4te
Posts: 1454
Joined: 2015-08-30 20:14

Re: Error while opening PDF files

#8 Post by Wheelerof4te »

Head_on_a_Stick wrote:this will replace every instance of "masterpdfeditor4-2" with "mupdf"
Missed chance for "marpfei".

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Error while opening PDF files

#9 Post by arzgi »

Head_on_a_Stick wrote:No need for bloated command line editors, this will replace every instance of "masterpdfeditor4-2" with "mupdf" without having to go through the file manually like a sucker:

Code: Select all

sed -i 's/masterpdfeditor4-2/mupdf/' ~/.config/mimeapps.list

And who said could not program way out of a wet box? :lol:

Post Reply