Package: debianutils
Version: 2.30
Severity: normal

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:

  % sensible-browser
  Couldn't find a suitable web browser!
  Set the BROWSER environment variable to your desired browser.

This situation occurs when I invoke sensible-browser (from mutt) over an
ssh session to a remote machine that doesn't have a terminal emulator
installed. DISPLAY is set because of ssh X forwarding.

>From /usr/bin/sensible-browser: 

  if test -n "$DISPLAY"; then
      if test -n "$GNOME_DESKTOP_SESSION_ID"; then
          if test -x /usr/bin/gnome-www-browser; then
              exec /usr/bin/gnome-www-browser "$URL"
          elif test -x /usr/bin/x-www-browser; then
              exec /usr/bin/x-www-browser "$URL"
          elif test -x /usr/bin/gnome-terminal && test -x /usr/bin/www-browser; 
then
              exec /usr/bin/gnome-terminal -e "/usr/bin/www-browser \"$URL\""
          fi
      fi
      if test -x /usr/bin/x-www-browser; then
          exec /usr/bin/x-www-browser "$URL"
      elif test -x /usr/bin/x-terminal-emulator && test -x 
/usr/bin/www-browser; then
          exec /usr/bin/x-terminal-emulator -e /usr/bin/www-browser "$URL"
      fi
  elif test -x /usr/bin/www-browser; then
      exec /usr/bin/www-browser "$URL"
  fi

  - DISPLAY is localhost:10.0
  - GNOME_DESKTOP_SESSION_ID is unset
  - /usr/bin/x-www-browser does not exist
  - /usr/bin/x-terminal-emulator does not exist

Always executing /usr/bin/www-browser if it exists would prevent this
problem from occurring:

  if test -n "$DISPLAY"; then
      if test -n "$GNOME_DESKTOP_SESSION_ID"; then
          if test -x /usr/bin/gnome-www-browser; then
              exec /usr/bin/gnome-www-browser "$URL"
          elif test -x /usr/bin/x-www-browser; then
              exec /usr/bin/x-www-browser "$URL"
          elif test -x /usr/bin/gnome-terminal && test -x /usr/bin/www-browser; 
then
              exec /usr/bin/gnome-terminal -e "/usr/bin/www-browser \"$URL\""
          fi
      fi
      if test -x /usr/bin/x-www-browser; then
          exec /usr/bin/x-www-browser "$URL"
      elif test -x /usr/bin/x-terminal-emulator && test -x 
/usr/bin/www-browser; then
          exec /usr/bin/x-terminal-emulator -e /usr/bin/www-browser "$URL"
      fi
  fi

  if test -x /usr/bin/www-browser; then
      exec /usr/bin/www-browser "$URL"
  fi



Kind regards,

Marcel Moreaux



-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-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 debianutils depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries

debianutils recommends no packages.

debianutils suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to