Skip to content

help command uses openvt's open instead of xdg-open when DISPLAY is unset #6739

@ThomasAH

Description

@ThomasAH

fish 3.1.0 on Debian stretch.

Issue #5756 is not fixed when DISPLAY is not set, because help.fish contains:

            else if type -q xdg-open; and set -q -x DISPLAY
                set fish_browser xdg-open
            end

In this case /bin/open (the symlink to /bin/openvt on Debian stretch) is used, which results in the unhelpful error message "Couldn't get a file descriptor referring to the console".

Workaround: set BROWSER xdg-open
(or maybe use dpkg-divert to hide the open command, but I haven't tested that)

xdg-open works fine even without a DISPLAY variable, in my case it opens the help in "links".

Debian buster does no longer have /bin/open, so the error does not occur there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions