On Tue, Sep 22, 2009 at 03:17:48PM +0000, Clint Adams wrote: > On Tue, Sep 22, 2009 at 10:10:17AM +0200, Marcel Moreaux wrote: > > Invoking sensible-browser when DISLPAY is set but > > /usr/bin/x-terminal-emulator doesn't exist fails to spawn a browser, but > > yields the following error instead: > > [...] > > > Always executing /usr/bin/www-browser if it exists would prevent this > > problem from occurring: > > The benefit of that would be that sensible-browser would be more useful > on the command line in situations like yours. However, sensible-browser > is not meant to be invoked from the command line; it's meant to be > spawned by other programs that are not sophisticated enough to perform > the logic themselves.
I'm aware of that. The situation that prompted me to file this bug was mutt invoking sensible-browser (as defined in the mime type system) and failing. > In the event that this is an X program, your proposed change > introduces the possibility of executing a text browser without a > terminal emulator. Will all candidate browsers fail appropriately in > that scenario? Hmm, maybe not. But maybe sensible-browser could check this by calling /usr/bin/tty ? tty's return value is 0 if stdin is a valid tty, and 1 if not. With kind regards, Marcel Moreaux -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org