browse by category or date

I like Foxit Reader very much. It’s fast, small and give you pretty much everything you need for a PDF Reader. Although they have the Linux version, I don’t really like it because I don’t seem to be able to automatically open a PDF file with a single click from Nautilus (although I already set ReaderLinux as the default Application).

Before we proceed, I am assuming you already have Wine up & running, and have installed the Windows version of Foxit Reader. What we need to do next is to associate the PDF file to Foxit Reader through Wine in Nautilus (or other File Manager that you have). If you have not install Wine, you could read the tutorial HERE.

After you have Wine up and running, download the Windows version of Foxit Reader HERE. Install it using the default settings.

First save the following script as in your home directory

# Purpose: To convert Linux-style filename to Windows-style to pass as an argument
# to wine when starting Foxit Reader
#assuming you use the default installation folder for Foxit in Wine
App='eval wine "C:\Program Files\Foxit Software\Foxit Reader\Foxit Reader.exe" "'$Filename'"'

Use as the Default Application for PDF File (select any PDF file in Nautilus, Right-Click -> Properties -> Open With -> Click [+ Add] Button -> Browse for located in your home folder.

Voila! Foxit Reader is now the default application for your PDF documents.

(Disclaimer: This post was based on 64-bit Ubuntu Gutsy Gibbon and Foxit Reader 2.1 Build 2023)


GD Star Rating
Foxit Reader on Ubuntu Linux (through Wine), 4.3 out of 5 based on 3 ratings

Possibly relevant:

About Hardono

Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.

1 Trackback


50 comments so far

Add Your Comment
  1. Well, I created a launcher.

    In the Create Launcher popwindow

    select Tyep: Application in Terminal
    Name: you-name_it
    Command: wine “/media/OS/Program Files/Foxit Software/Foxit Reader/Foxit Reader.exe”

    click ok.

    A launcher will be created on your desktop. I works.

    but I have to run the launcher to open the foxitreader then open pdfs inside foxitreader. How to link this launcher to my pdfs?

  2. Hi green,

    Have you tried download, modify “C:Program FilesFoxit SoftwareFoxit ReaderFoxit Reader.exe” into “/media/OS/Program Files/Foxit Software/Foxit Reader/Foxit Reader.exe”

    then run it. What is the error message? does Foxit Reader launched?

  3. For those people having trouble getting the file to run make sure it has the appropriate permissions.

    To allow excecution,

    Rightclick on
    click permissions tab
    check “Allow excecuting file as program”
    close window and associate with pdf

    This should solve your “could not find app” problem


  4. Wow, thanks! I was just searching for generic tips on converting to wine filenames so I could do exactly this with Foxit. Things just got way easier!

  5. Thanks a lot sebastian for the tip.its working fine 🙂

  6. Hello Hardono,
    I am very thankful to you for this guide.For other newbies here coz I am also one I will just put the order of things I did and what problems I faced.Also sabestian’s suggestion was very helpful.
    1.completed the installation of wine and then foxit in wine
    a.As a result I got a foxit icon on my ubuntu desktop .Installation
    went to the following directory-“/home/varun/.wine/Program File
    s/Foxit Reader/Foxit Reader.exe”
    2.Then I tried saving the script given in multicolor above in a text editor and saved it as
    3.Tried opening a pdf by right clicking on it and selecting permissions–>add–>,browed to and clicked okay but got the error message that file was not found.
    4.Used sabastian’s tip and changed the file type to exe,and tried the step 3 above again.,but no good.
    5.There is another file on this page just after the disclaimer(top of the page and not very visible and so u need to see.)which says “download”.I downloaded that and put overwrote it on the earlier file I had from the earlier step.
    6.I did step 3 again [but I guess there is no need].
    and voila!!!!!success.
    So thanks everyone and hope this step by step thing helps someone.
    The only thing I have not tested till now is shutting down the computer and seeing if on restarting the same arrangement works for me or not.

  7. Has the thread died.If not I have another little problem.I can start foxit and do stuff but when I use open office and then close foxit I am not able to open it again with the sh script of with the exe created on the destop.Can someone help

    thanks in advance

  8. hi Varun,

    If you try to execute the instruction through command line, what is the error message shown?

  9. good post. its working fine..thanks a lot to hardono & sebastian..

    • @lakshminarayanan v, Cheers 🙂

  10. For those who have had difficulty getting the script working I suggest they re-type it themselves. A number of characters did not copy correctly with me, including the quotes. This is my script, maybe this will copy and paste correctly for you:

    # Purpose: To convert Linux-style filename to Windows-style to pass as an argument
    # to wine when starting Foxit Reader
    #assuming you use the default installation folder for Foxit in Wine
    App=\'eval wine \"C:Program FilesFoxit SoftwareFoxit ReaderFoxit Reader.exe\" \"\'$Filename\'\"\'

    • Hi Chris,

      It has something to do with the way WordPress/MySQL store those back-quotes. I have put the script as a downloadable script though, hopefully it will be 🙂

  11. It works perfectly, thank you very much. I always wondered how to do this…

  12. Another trick would be to use the builtin WINE function called winepath :

    # Purpose: To convert Linux-style filename to Windows-style to pass as an argument
    # to wine when starting Foxit Reader
    # We use Wine\'s winepath function to convert our unix path to a windows path name
    # where $@ access the selected file(s) path names
    filename=\"$(winepath -w \"$@\")\"
    # assuming you use the default installation folder for Foxit in Wine
    wine \"C:Program FilesFoxit SoftwareFoxit ReaderFoxit Reader.exe\" \"$filename\"

    Watch for the double quotes as they are badly copied from this blog (at least in my case, in gedit)

  13. I have used almost all PDF readers there are for both Gnome and KDE, only to find out Foxit renders them best.

    Many thanks for writing awesome script.

  14. God bless you Maxim!

    The first code didn’t worked for me (using Ubuntu 9.10 Karmic Koala) but the one you posted on 2009.06.21 20:56 with “winepatch” worked right away (I used the “view source” option on the little window). I just can’t do without foxit reader functions of: highlight, note and “replace document colors”. I use black background with red text. The linux version of Foxit haven’t got those yet.

  15. Thanks a lot. This solved my problem perfectly.

  16. Hi! I don’t know for other Ubuntu releases but I have 10.04 LTS and what you are trying to do is done easily like this:
    Right-click with your mouse on a .PDF file and choose “Properties”, go to the “Open With” tab and there you should see a list of programs used for opening .PDF files, in which “FoxitReader” should be. (If it isn’t then click Add and from the list of programs that opens select “FoxitReader” and click again Add. Now FoxitReader should be in the initial list.)
    Now just click on the radiobutton on the left of FoxitReader and then click Close.
    Your .PDF files should be associated with Foxit Reader.
    Try to click different .PDF files and you should see them open with Foxit Reader.

    • Hi Lika,

      Yes, provided you’re using the Linux version of Foxit Reader. Last time I tried, the Foxit Reader on top of Wine is much better than the Linux version.

  17. Hi,
    As a recent convert to Ubuntu 10.04 from Windows, I’ve downloaded Foxit Reader Setup v3.3.1.0518 and apparently the setup window did not run; but instead it went straight to running the application (without installing). I can open my pdf files using Foxit Reader by dragging and dropping them onto the interface.

    The problem is, I’ve tried the method Hardono posted, and it couldn’t run as a “default app”. Even tried modifying the .exe (setup) file to the suggested name as Foxit Reader.exe so foxit.sch can recognize it, still didn’t work. Can anyone help?

    • Hi Choe,

      I have tried Ubuntu 10.04. And installed Adobe’s Acrobat Reader for Linux. It’s surprisingly fast and easy. I guess that makes this post moot 🙂

    • Hi Choe, I had the same exact problem as you. Using Ubuntu 10.04, I tried installing Windows Foxit 3.31, 4.0, and 4.1, and the install wizard was just skipped under Wine 1.1.42 and Wine 1.2. Foxit just opened… not really supposed to work that way.

      If you’re intent on using a PDF reader with decent annotation capabilities, you can resort to PDF-XChange Viewer, which is also free but looks more cumbersome (LOTS of functions, way more than I need). It installed successfully under Wine, and I was also able to right click and set PDF files to open with it by default — no need for any special script.

  18. hi, I am glad it looks like this thread is still open.

    I have tried getting this to work, but no success yet. I am running 9.04 Xubuntu, but I do not think that should be a problem.

    I had to change:
    App=`eval wine “C:Program FilesfoxitFoxitReader411_enu_Setup” “‘$Filename\'”`
    App=`wine “C:Program FilesfoxitFoxitReader411_enu_Setup” “‘$Filename\'”`
    removing eval to get Foxit to open up by clicking on a PDF file in Thunar (X’s Nautilus), and now Foxit opens fine but without opening the PDF file I clicked on. I can easily click on the open file icon and click the file, but it would be sweeter if you let me know what I might be overlooking getting Foxit to actually open the PDF file I click on.


    • are you still monitoring this thread? if so I would appreciate getting this working for me if you can see anything that might be worth a try.


  19. Hi Hardono, thank.

    I seem to have run into another problem, “Filename” with parentheses error.

    $ exemple(1).pdf

    bash: syntax error near unexpected token `(‘

    • Hi mtropycs,

      perhaps you could add escape character to the bracket “(“