Changing default app for PDF
I'm using ubuntu 14.04. I want to set acrobat reader as a default app for PDF files. Right clicking and going "open with" does not get me anywhere because app is not listed. not even under "other applications. Same thing with going through properties and selecting "open with".
I also tried doing it this way:
going to /etc/gnome/defaults.list
and change the line:
application/pdf=evince.desktop
to:
application/pdf=acroread.desktop
This just gave me an error and would not open PDF file at all. Please help.
I'm new to Linux and I'm not computer savvy.
Right click on the pdf file, then select Properties
. In the Properties window, select the Open With
tab. Find Acrobat Reader in the list of applications and select it, then press the button that says Set as Default
. That should do it!
Here's an example of what that window looks like (it was taken from this How-to-Geek article):
This is what worked for me:
-
Open the file with
sudo -H gedit /usr/share/applications/AdobeReader.desktop
-
Edit the
Exec=acroread
line to beExec=acroread %f
-
Save the file as
~/.local/share/applications/AdobeReader.desktop
And Voila! Now you can see the Acrobat reader option when you right-click on the file. It'll also show in the properties > OpenWith tab.
The default applications' list is saved in
/etc/gnome/defaults.list
You need sudo privileges to edit this file. So open it as:
gksudo gedit /etc/gnome/defaults.list
and then locate the line containing the following:
application/pdf=...
where ...
represents the current default application. Replace it as:
application/pdf=acroread.desktop
and then save the file. Now you have acrobat reader as your default viewer!
I am on Ubuntu 18.04.3 LTS and had a similar problem with Adobe Acrobat Reader DC installed by snap. I tried to use @Luis's solution, so I tried to edit /snap/acrordrdc/6/meta/gui/acrordrdc.desktop
but it was readonly and there was no success.
Eventually, I figured out that snap files cannot be edited manually because of security concerns described here. Fortunately the file /var/lib/snapd/desktop/applications/acrordrdc_acrordrdc.desktop
is editable by root
or sudoers
. I edited the line starting with Exec=
as follows:
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/acrordrdc_acrordrdc.desktop /snap/bin/acrordrdc %f
I just added %f
at the end of line and then Adobe Acrobat Reader DC was appeared in the "Open With" dialog.