Foxit Reader on Ubuntu Linux (through Wine)
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)
Hardono Arifanto :: Dec.13.2007 :: Tricks, Software, Ubuntu :: 7 Comments »
Make Money from your Blog:
7 Comments to “Foxit Reader on Ubuntu Linux (through Wine)”
-
Bryan
Posted: Apr 23rd, 2008 at 6:28 pm1Hi,
Thank you for your excellent guide!
I’ve my Win32 Firefox 1.5 running on wine 0.9.51 in order to access our company’s Oracle Form Server via JRE1.5.0.11 (via wine also) , but the only problem was that I can’t find any working Win32 PDF viewer to use under WINE’s fake Windows, until I read your blog today.
I also like Foxit Reader very much after I’ve evaluated in my wine applications, and now I also want to use it for my Linux Desktop to replace the slow acroread, crippled evince, and ugly xpdf etc….
But I can’t get it work according to your above mentioned script.
My foxit reader is locating under ~/.ies4linux/ie6/drive_c/Foxit/Foxit-Reader.exe
I tried to add WINEPREFIX=/home/xxx/.ies4linux/ie6 in front of the line, but it’s not working…
Please let me know as to how I should modify your script in order to get it work?
Thanks!
Bryan
-
Pingback:
Posted: Apr 27th, 2008 at 5:12 pm3Installing Foxit Reader 2.3 in Ubuntu via Wine | ZMAngBlog[…] Now, to make sure you can use Foxit as the default PDF reader application by using the guide at SODEVE. […]
-
Bryan
Posted: Apr 28th, 2008 at 6:17 pm4Hi,
Thanks for your reply.
I’ve re-modified it again accordingly, but I got the following error:
foxit.sh: 4: Syntax error: Bad substitution
Any ideas?
Can you please put your script file somewhere for download?
Thanks!
Bryan
-
coldpi
Posted: Jul 1st, 2008 at 11:48 pm6There is alrady a native Linux version of Foxit Reader. Check out the official site..
-
matelot
Posted: Jul 5th, 2008 at 8:51 am7> coldpi : There is alrady a native Linux version of Foxit Reader. Check out the official site..
it doesn’t work moron






