Add support for xdg-open

@sethladd this should be better than #291 could you please check on your setup ?

Thanks