"xdg-open http://www.google.ca" in a command line opens my default browser(google-chrome) but does not load the URL.

If I change my default browser to Firefox the URL loads just fine.

Any ideas?

I'm running 14.04.

share|improve this question
    
Can't duplicate... What does google-chrome http://google.ca do? – Tim Jul 17 '14 at 19:30
    
I use chromium as default browser and it's working fine. – Radu Rădeanu Jul 17 '14 at 20:24
    
'google-chrome google.ca'; works no problem. However, i'm still unable to have links load properly from other applications that use xdg-open. @Tim – RjPiston Jul 18 '14 at 13:09
    
@RaduRădeanu If i set my default browser to chromium or firefox xdg-open works no problem. This problem is only with chrome. – RjPiston Jul 18 '14 at 13:31
    
If i delete the google-chrome.desktop file from ~/.local/share/applications it works fine. So weird. – RjPiston Jul 19 '14 at 3:11

It's because the .desktop file that chrome installs in your home (in ~/.local/share/applications) is bad. Either add a %U to the end of the Exec= line, like so:

Exec=/opt/google/chrome/chrome %U

or remove it and let your system pick up the one chrome itself ships in /usr/share.

share|improve this answer
    
edit the default one named google-chrome.desktop not the profiles like chrome-blahblahblah... – CrandellWS Mar 14 '17 at 21:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.