Getting this error as regular user:
~$ xdg-open http://www.google.com/
xdg-open: no method available for opening 'http://www.google.com/'
~$
~$ xdg-mime query default text/html
~$
Code from /usr/bin/xdg-open
# if BROWSER variable is not set, check some well known browsers instead
if [ x"$BROWSER" = x"chromium" ]; then
BROWSER=links2:elinks:links:lynx:w3m
if [ -n "$DISPLAY" ]; then
BROWSER=firefox:mozilla:epiphany:konqueror:chromium:google-chrome:$BROW$
fi
fi
open_envvar "$1"
exit_failure_operation_impossible "no method available for opening '$1'"
}
Operating system: Ubuntu 16.04 Gnu/Linux
xdg-mime query default text/html
and what browsers do you have installed? Is this Ubuntu server? Do you have a working graphical environment? – terdon♦ Apr 11 '20 at 13:58