Julien BLACHE wrote on Sun, 07.08.2005:
> CAiRO <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> > When I try to open the xsane help (e.g. by pressing F1), I get an
> > error message:
> >
> > "Failed to execute documentation viewer: /usr/bin/sensible-browser:
> > No such file or directory" (without the quotes)
> 
> Well, obviously it works here on all my machines. What browser are you
> using ?

/usr/bin/sensible-browser starts Konqueror over here. Which one are you
using? Is /usr/bin/sensible-browser a perl script over there? I don't
understand how it could possibly ever work over there.


> > I've installed '/usr/bin/sensible-browser' as part of the
> > debianutils package. I can start '/usr/bin/sensible-browser' from a
> > normal aterm without any problems. The problem is that xsane uses
> > execvp to run '/usr/bin/sensible-browser' which is a perl script and
> > not a binary. I could fix the problem on my box by replacing
> > '/usr/bin/sensible-browser' with 'sh -c /usr/bin/sensible-browser'
> > in 02_docviewer.dpatch. Though, this probably a rather ugly
> > solution.
> 
> I totally fail to see why it would work this way and not otherwise.


I don't understand why you fail to see it. 

What of my explanation do you not understand? 

I could only repeat what I've said before. The execvp function seems to
expect a binary and not a perl script. A shell is needed to parse the
first line from /usr/bin/sensible-browser and start a perl interpreter.

After reading the man page of 'execvp' again, I see that 'execve' seems
to start a shell as last resort if the file can't be executed. So
replacing 'execvp' with 'execve' might also solve the problem.
(untested) Also see the man page of 'execve'.


Regards,

CAiRO


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to