Mohammadreza Hadizadeh

xdg-open Error: no display specified

Error Description
When I try to open a URL in the console I get the error message: ERROR: “No Display Specified”
$ xdg-open http://www.google.com


Error: no display specified

Solution
You could try DISPLAY=:0 before xdg-open command
$ DISPLAY=:0 xdg-open http://www.google.com