I run
$ xdg-open 'http://google.com'
in /home/rominf/ and expect Firefox to open Google, but instead got GUI message with error:
/home/rominf/http:/google.com: No such file or directory
Firefox is set as a default browser in LXDE settings. What's wrong with xdg-open?
UPD0: In the comments, xdg-mime was suggested. I set firefox to be the default browser with no success:
$ xdg-settings set default-web-browser firefox.desktop
$ xdg-open 'http://google.com' # Produces same error
$ xdg-mime query default x-scheme-handler/http
firefox.desktop
UPD1:
$ xdg-mime query filetype 'http://google.com'
xdg-mime: file 'http://google.com' does not exist
The question is: "Why xdg utils think that this link is a filename?".
UPD2:
$ xdg-settings get default-url-scheme-handler http
firefox.desktop