LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Opening files with Wine from desktop (https://www.linuxquestions.org/questions/linux-newbie-8/opening-files-with-wine-from-desktop-831495/)

ahtoot 09-10-2010 10:56 PM

Opening files with Wine from desktop
 
'm trying to get wine to open .pdf files with Foxit.

I have no problems running the following command in terminal
wine "C:\\Program Files\\Foxit Reader\\Foxit Reader.exe" file.pdf

The following is the desktop entry file for pdf files.
[Desktop Entry]
Type=Application
Name=Foxit Reader
Exec=wine "C:\\Program Files\\Foxit Reader\\Foxit Reader.exe" %F
NoDisplay=true

When I try to open pdf files from desktop, I get a dialog box about how to invoke the exe file. How do I get the exe to register the list of files properly?

Also, how would I pass command line parameters for Foxit in the desktop entry file?

business_kid 09-11-2010 01:45 PM

Try this:
Run winecfg and set it in the Desktop Integration tab. Put parameters between the 'e' of exe and the closing "

youarefunny 09-11-2010 05:39 PM

Quote:

Originally Posted by ahtoot (Post 4094074)
I'm trying to get wine to open .pdf files with Foxit.

I don't know if you are aware that foxit has a native Linux version.
http://www.foxitsoftware.com/downloads/index.php

frankbell 09-13-2010 09:11 PM

Why not just use one of the many existing Linux programs, such as Okular (for KDE) or xpdf or Document Viewer (for Gnome)?

Most Linux distros comes with several PDF readers included; Okular (used to be KPDF) is my personal favorite.

I do like Foxit. If I have to read a PDF on Windows, Foxit is my first choice.


All times are GMT -5. The time now is 02:30 AM.