Package: w3m Version: 0.5.2-2.1 Severity: normal Setting BROWSER=w3m is sadly asking for trouble. When some X program (such as xfce4-terminal) tries to use sensible-browser, it will run w3m, and despite w3m having no terminal, w3m will exit nonzero, and so sensible-browser assumes it succeeded, and does not go on to run x-www-browser instead.
What does w3m really do when run like this? Well, one possibility is that since TERM is not set, it fails. Except, oops -- w3m prints an error and then exits successfully in this kind of case: j...@gnu:~>TERM= w3m; echo $? Can't find termcap entry 0 j...@gnu:~>unset TERM j...@gnu:~>w3m http://kite/; echo $? TERM is not set 0 It should exit nonzero in both the cases above. However, strace shows that when run by xfce4-terminal, w3m actually dumps the page to stdout and exits, same as if it were run in a pipe. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.31-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages w3m depends on: ii libc6 2.10.2-5 Embedded GNU C Library: Shared lib ii libgc1c2 1:6.8-1.2 conservative garbage collector for ii libgpm2 1.20.4-3.3 General Purpose Mouse - shared lib ii libncurses5 5.7+20090803-2 shared libraries for terminal hand ii libssl0.9.8 0.9.8k-8 SSL shared libraries ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages w3m recommends: ii ca-certificates 20090814 Common CA certificates Versions of packages w3m suggests: ii man-db 2.5.6-5 on-line manual pager ii menu 2.1.43 generates programs menu for all me pn migemo <none> (no description available) ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap pn w3m-el <none> (no description available) pn w3m-img <none> (no description available) -- debconf-show failed -- see shy jo
signature.asc
Description: Digital signature