|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
Can't run shell commandsHi, since some days ago, my Conkeror can't run external commands. That means for instance that PDF files don't open in evince, or that M-x shell-command RET /usr/bin/beep RET doesn't beep. In the output I get each time: [xpconnect wrapped nsILocalFile]: No such file or directory I think this is caused by the upgrade to xulrunner 1.9.0.14-1 (Debian), since older revisions of Conkeror are also showing the same bug on my computer. But since the download manager has been changed recently, I wonder if it is related. conkeror-spawn-helper is in $PATH. -- Daniel _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commands2009/9/22 Daniel Clemente <dcl441-bugs@...>:
> > Hi, since some days ago, my Conkeror can't run external commands. That means for instance that PDF files don't open in evince, or that M-x shell-command RET /usr/bin/beep RET doesn't beep. > > In the output I get each time: > [xpconnect wrapped nsILocalFile]: No such file or directory > > I think this is caused by the upgrade to xulrunner 1.9.0.14-1 (Debian), since older revisions of Conkeror are also showing the same bug on my computer. But since the download manager has been changed recently, I wonder if it is related. > conkeror-spawn-helper is in $PATH. > > -- Daniel > > _______________________________________________ > Conkeror mailing list > Conkeror@... > https://www.mozdev.org/mailman/listinfo/conkeror > If I remember correctly, when I had this problem, I ran "make" in the Conkeror source directory which solved the problem, but I can't really explain why. -- Deniz Dogan _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commandsOn Tue, Sep 22, 2009 at 01:11:47PM +0200, Deniz Dogan wrote:
> > Hi, since some days ago, my Conkeror can't run external commands. That means for instance that PDF files don't open in evince, or that M-x shell-command RET /usr/bin/beep RET doesn't beep. > > > > In the output I get each time: > > [xpconnect wrapped nsILocalFile]: No such file or directory > > > > I think this is caused by the upgrade to xulrunner 1.9.0.14-1 (Debian), since older revisions of Conkeror are also showing the same bug on my computer. But since the download manager has been changed recently, I wonder if it is related. > > conkeror-spawn-helper is in $PATH. Is conkeror-spawn-helper in $PATH from the Debian package conkeror-spawn-process-helper? > If I remember correctly, when I had this problem, I ran "make" in the > Conkeror source directory which solved the problem, but I can't really > explain why. As far as I can see conkeror-spawn-helper doesn't depend on any Mozilla code, so I would expect that a recompilation against (more) current libraries shouldn't change anything. Regards, Axel -- Axel Beckert - abe@..., abe@... - http://noone.org/abe/ _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commandsEl dt, set 22 2009 a les 13:56, Axel Beckert va escriure:
>> > conkeror-spawn-helper is in $PATH. > > Is conkeror-spawn-helper in $PATH from the Debian package > conkeror-spawn-process-helper? > I tried both (the one from conkeror-spawn-process-helper.deb and the one from conkeror's tree) and they behave the same. This is because it isn't even run. I tried to replace both /usr/lib/conkeror/conkeror-spawn-helper and /usr/local/bin/conkeror-spawn-helper with a shell script that beeps, and «M-x shell-command RET gedit RET» doesn't beep. However, C-i on a text field correctly opens an external editor. It doesn't beep. Looking at the code: When I execute (M-x shell-command) beep, function spawn-process() at spawn-process.js gets called with program_name="bash" and args=",-c,beep" and working_dir="[xpconnect wrapped nsILocalFile]" (these are string representations). Note that already «M-x shell-command RET» produces a prompt which asks: «Shell command [[xpconnect wrapped nsILocalFile]]: ». Either it's not very friendly or something is wrong. Debian changed the default shell from bash to dash. But I tried repointing /bin/sh to /bin/bash and it happens the same. -- Daniel _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commandsEl dt, set 22 2009 a les 14:59, Daniel Clemente va escriure: > When I execute (M-x shell-command) beep, function spawn-process() at spawn-process.js gets called with program_name="bash" and args=",-c,beep" and working_dir="[xpconnect wrapped nsILocalFile]" (these are string representations). And spawn_process_internal enters with - program=[xpconnect wrapped nsIFile] - get_file_in_path(program)=[xpconnect wrapped nsIFile] - their path refer to the conkeror-spawn-helper inside Conkeror's tree - args=/tmp/spawn_process_key-11.dat,57849 - process.run(!!blocking, args, args.length) is executed correctly and it is only after that that I get the error _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commandsOn Tue, Sep 22, 2009 at 02:59:48PM +0200, Daniel Clemente wrote:
> > Is conkeror-spawn-helper in $PATH from the Debian package > > conkeror-spawn-process-helper? > > I tried both (the one from conkeror-spawn-process-helper.deb and the > one from conkeror's tree) and they behave the same. > > This is because it isn't even run. I tried to replace both > /usr/lib/conkeror/conkeror-spawn-helper and > /usr/local/bin/conkeror-spawn-helper with a shell script that beeps, > and «M-x shell-command RET gedit RET» doesn't beep. However, C-i on > a text field correctly opens an external editor. It doesn't beep. The reason for the non-working beep thing could be because beep needs a terminal to beep while conkeror doesn't need to open the shell in a terminal IIRC. Calling xterm via M-x shell-command though doesn't work either -- neither with 1.9.0.13 nor 1.9.0.14 nor 1.9.1.3. > Looking at the code: > When I execute (M-x shell-command) beep, function spawn-process() at > spawn-process.js gets called with program_name="bash" and > args=",-c,beep" and working_dir="[xpconnect wrapped nsILocalFile]" > (these are string representations). > > Note that already «M-x shell-command RET» produces a prompt which > asks: «Shell command [[xpconnect wrapped nsILocalFile]]: ». Either > it's not very friendly or something is wrong. Especially working_dir="[xpconnect wrapped nsILocalFile]" looks very bad, yes. > Debian changed the default shell from bash to dash. But I tried > repointing /bin/sh to /bin/bash and it happens the same. That should not cause such problems, at least not if bash explicitly is mentioned. Although I do wonder why bash gets called and not sh. Regards, Axel -- Axel Beckert - abe@..., abe@... - http://noone.org/abe/ _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commandsOn Tue, Sep 22, 2009 at 01:01:19PM +0200, Daniel Clemente wrote:
> > Hi, since some days ago, my Conkeror can't run external commands. That means for instance that PDF files don't open in evince, or that M-x shell-command RET /usr/bin/beep RET doesn't beep. > > In the output I get each time: > [xpconnect wrapped nsILocalFile]: No such file or directory > > I think this is caused by the upgrade to xulrunner 1.9.0.14-1 (Debian), since older revisions of Conkeror are also showing the same bug on my computer. But since the download manager has been changed recently, I wonder if it is related. > conkeror-spawn-helper is in $PATH. Thanks for the report.. I can reproduce it here. Will work on it today. -- John Foerch _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commandsOn Tue, Sep 22, 2009 at 11:57:00AM -0400, John J. Foerch wrote:
> On Tue, Sep 22, 2009 at 01:01:19PM +0200, Daniel Clemente wrote: > > > > Hi, since some days ago, my Conkeror can't run external commands. That means for instance that PDF files don't open in evince, or that M-x shell-command RET /usr/bin/beep RET doesn't beep. > > > > In the output I get each time: > > [xpconnect wrapped nsILocalFile]: No such file or directory > > > > I think this is caused by the upgrade to xulrunner 1.9.0.14-1 (Debian), since older revisions of Conkeror are also showing the same bug on my computer. But since the download manager has been changed recently, I wonder if it is related. > > conkeror-spawn-helper is in $PATH. > > > Thanks for the report.. I can reproduce it here. Will work on it today. > fixed -- John Foerch _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commands> fixed Now this works: M-x shell-command RET beep RET Thanks But following a link to a PDF and asking to open it in evince doesn't open it but produces this output instead: undefined: No such file or directory Maybe some spawn_process caller must pass now a nsILocalFile instead of string? _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commandsOn Tue, Sep 22, 2009 at 06:58:59PM +0200, Daniel Clemente wrote:
> > > fixed > > Now this works: M-x shell-command RET beep RET > Thanks > > But following a link to a PDF and asking to open it in evince doesn't open it but produces this output instead: > undefined: No such file or directory > > Maybe some spawn_process caller must pass now a nsILocalFile instead of string? d'oh! The "local variables rewrite" patch of June 4 had tendrils reaching into so many parts of conkeror that I failed to test everything I should have. I just pushed another fix, so please try it and test it. Thanks! -- John Foerch _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
|
|
Re: Can't run shell commandsEl dt, set 22 2009 a les 19:48, John J. Foerch va escriure:
> d'oh! The "local variables rewrite" patch of June 4 had tendrils reaching > into so many parts of conkeror that I failed to test everything I should > have. I just pushed another fix, so please try it and test it. Thanks! I have tested that the following works now: - M-x shell-command RET beep RET - M-x shell-command RET gedit RET - C-i in a text field - follow a link, select to open it in evince - follow a link, select to open it in beep :-) Thanks _______________________________________________ Conkeror mailing list Conkeror@... https://www.mozdev.org/mailman/listinfo/conkeror |
| Free embeddable forum powered by Nabble | Forum Help |