On 2009-12-09, rgheck wrote:

>> Are you sure of that? On my KDE system this is properly handled and I 
>> believe on Gnome too. Or am I missing something?

> Well, I tried it here, and got the error message I posted:

> Systemcall.cpp(111): QProcess %s 
> "/tmp/lyx_tmpdir.MT3859/lyx_tmpbuf0/r.rtf" did not start!
> Systemcall.cpp(112): error The process failed to start. Either the 
> invoked program is missing, or you may have insufficient permissions to 
> invoke the program.
> Error: Cannot view file
> ----------------------------------------
> An error occurred whilst running %s 
> "/tmp/lyx_tmpdir.MT3859/lyx_tmpbuf0/r.rtf"

> And the file is there:

> [rgh...@rghquad ~]$ ls /tmp/lyx_tmpdir.MT3859/lyx_tmpbuf0/
> r.aux  r.dvi  r.log  r.rtf  r.tex  r.tex.dep

> and can be opened with abiword, or whatever.

What happens if you click on a *.rtf file in Konqueror?
(Maybe you did not set a valid default application?)

>>> The correct solution is to detect the viewer and default to "auto".

>> But then, when your default viewer changes, LyX will have to run 
>> configure again to acknowledge the change; this looks wrong to me. The 
>> desktop knows better than LyX what viewer to use.

> We can simply default to "auto", then, if people prefer to do that. But 
> "%s" is wrong.

"%s" is a placeholder. If a Python file (like configure.py) contains the
code
  
  auto = "Auto"
  str = "this is my %s" % auto

the string str will have the value "this is my Auto".

If the '%s' is still in the program call, something went wrong. (But the
fix must not necessarily be the removal of the placeholder.)
   
Günter   

Reply via email to