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 foxit.sh in your home directory

#!/bin/bash
# Purpose: To convert Linux-style filename to Windows-style to pass as an argument
# to wine when starting Foxit Reader
Filename="z:"${1//\//\\}
#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'"'
$App

Use foxit.sh as the Default Application for PDF File (select any PDF file in Nautilus, Right-Click -> Properties -> Open With -> Click [+ Add] Button -> Browse for foxit.sh 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)

Download foxit.sh

GD Star Rating
loading...
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.

Incoming Search

linux, pdf, ubuntu

51 comments so far

Add Your Comment
  1. Hi Hardono,

    Your script works well on my Fedora14 x86_64,

    A question here:
    When I already open one pdf file using Foxit, can I open another by “double click” ?
    (It seems cant work like this, I get a pop-up window showing “Setup.exe Could not open file. File not found”.)

    ( somethings need to say : The way in which I “wine” the foxit is a little strange. It do not need to click several “next step” to install, I have never saw “next step” when “wine”ing Foxit )

  2. Your script works well under Arch Linux x64 🙂 Cheers for sharing!

  3. I use that script:
    [code]
    #!/bin/sh
    ROOT_DRIVE=”Z:”
    for arg
    do
    wine “/home/…/.wine/drive_c/Program Files/Foxit (…)/Foxit Reader.exe” ${ROOT_DRIVE}$(echo $arg | sed ‘s////g’)
    done
    [code]

    and placed it in ~/bin and added the bin folder to PATH via:
    [code]
    # set PATH so it includes user’s private bin if it exists
    if [ -d ~/bin ] ; then
    PATH=~/bin:”${PATH}”
    fi
    [code]

    If you use GNOME/KDE then place the last code sample into ~/.gnomerc (~/.kderc) otherwise ~/.xsessionrc is a good place.

  4. I am also using Foxit Reader to open file PDF, it is easy to use. Thanks for guiding the way to associate the PDF file to Foxit Reader through Wine in Nautilus.