I'm new to ubuntu as I come from Win7. In win7 I was using Foxit Reader to open the pdf documents.
Searching online I found this method to install Foxit.
cd Downloads/
tar -xvf FoxitReader-1.1.0.tar.bz2
cd 1.1-release/
./FoxitReader
As you can see, in order to open foxit I have to run it from cmd
, but I'll like to automatically open the pdf files with Foxit. How can I do that?
A solution is to look for the *.desktop file FoxitReader.desktop and add % F at the end of the line starting with Exec
More in details: in my Ubuntu 16.04 machine I found the file in the following folder
The file initially was like this:
I modified only the 16th line and added %F at the end:
Since most of my *.desktop files are in the folder /usr/share/applications/ I also copied it there, just to be sure (however, I am not sure this part is necessary)
Now FoxitReader is part of the list of programs recognized by ubuntu in the "open with" list, so I just went to a pdf file,
right-clicked > Open with > View all applications
and chose FoxitReaderYou just need to go where is your PDF file, click with the right button, and then click on "Open with". Hope that it solved your problem =D