Comment 10 for bug 204858

Revision history for this message
Chris Cheney (ccheney) wrote : Re: Openoffice.org needs to follow XDG to determine default browser

No the real problem appears to be that the Debian/Ubuntu standard 'sensible-browser', which is what OOo actually uses, does not use xdg-open.

===

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