I'm trying to set up Word Viewer in Wine. While I can run it and even get it to load the document, from the command line, I can't seem to open it, with the document loaded, from the desktop. I've been trying to figure out how to pass the parameter (file name) to the app, in the Contro Center file associations. No matter what I do, I can only open the app, without the document loaded. Any ideas? tnx jk
James Knott wrote:
I'm trying to set up Word Viewer in Wine. While I can run it and even get it to load the document, from the command line, I can't seem to open it, with the document loaded, from the desktop. I've been trying to figure out how to pass the parameter (file name) to the app, in the Contro Center file associations. No matter what I do, I can only open the app, without the document loaded.
Any ideas?
tnx jk
Forgot to mention, I'm running KDE.
On Tue, 2005-08-09 at 13:17 -0400, James Knott wrote:
I'm trying to set up Word Viewer in Wine. While I can run it and even get it to load the document, from the command line, I can't seem to open it, with the document loaded, from the desktop. I've been trying to figure out how to pass the parameter (file name) to the app, in the Contro Center file associations. No matter what I do, I can only open the app, without the document loaded.
Any ideas?
tnx jk
It is always helpful to show what you have tried so we have a base that we can start from. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
Ken Schneider wrote:
On Tue, 2005-08-09 at 13:17 -0400, James Knott wrote:
I'm trying to set up Word Viewer in Wine. While I can run it and even get it to load the document, from the command line, I can't seem to open it, with the document loaded, from the desktop. I've been trying to figure out how to pass the parameter (file name) to the app, in the Contro Center file associations. No matter what I do, I can only open the app, without the document loaded.
Any ideas?
tnx jk
It is always helpful to show what you have tried so we have a base that we can start from.
In the the file associations for msword, I have the command /home/jknott/bin/wordview The contents of /home/jknott/bin/wordview is (all on one line) /usr/bin/wine "/home/jknott/.wine/drive_c/Program Files/WordView/WORDVIEW.EXE" $1 When I run the wordview script with a filename, Word Viewer opens with the document. When launched from the desktop, it doesn't. The same problem applies, if I configure the file associations to run wine & WORDVIEW.EXE directly.
James Knott wrote:
Ken Schneider wrote:
On Tue, 2005-08-09 at 13:17 -0400, James Knott wrote:
I'm trying to set up Word Viewer in Wine. While I can run it and even get it to load the document, from the command line, I can't seem to open it, with the document loaded, from the desktop. I've been trying to figure out how to pass the parameter (file name) to the app, in the Contro Center file associations. No matter what I do, I can only open the app, without the document loaded.
Any ideas?
tnx jk
It is always helpful to show what you have tried so we have a base that we can start from.
In the the file associations for msword, I have the command /home/jknott/bin/wordview
The contents of /home/jknott/bin/wordview is (all on one line) /usr/bin/wine "/home/jknott/.wine/drive_c/Program Files/WordView/WORDVIEW.EXE" $1
When I run the wordview script with a filename, Word Viewer opens with the document. When launched from the desktop, it doesn't.
The same problem applies, if I configure the file associations to run wine & WORDVIEW.EXE directly.
Forgot to mention, I have tried both %f and %u at the end of the command in the file associations.
James Knott wrote:
When I run the wordview script with a filename, Word Viewer opens with the document. When launched from the desktop, it doesn't.
The same problem applies, if I configure the file associations to run wine & WORDVIEW.EXE directly.
I have just noticed something very curious. In order to see what was happening, I added a line to the wordview script, to display the file name. This showed that the full path & file name was being passed to the script. I then tried various combinations from the command line. If, while in the resume directory, I entered "wordview J_Knott.doc", it worked fine. And if while in my home directory, I entered "wordview resume/J_Knott.doc", it also worked. However, if I entered either "wordview /home/jknott/resume/J_Knott.doc" or "wordview ~/resume/J_Knott.doc", it failed. So, for some reason, it appears that word viewer is fussy about paths.
participants (2)
-
James Knott
-
Ken Schneider