xdg-open not working with URLs

Started by David, 2019/03/03, 03:42:43

Previous topic - Next topic

David

I have been researching how to solve this problem for a while now and I have not found a solution. I found an instance of someone with the exact same problem as me (xdg-open not working and lxde is being used) however when I tried the solution it only allowed me to use xdg-open with links that started with https:// or http://


For those wondering what I tried, I went into /usr/bin and editted the xdg-open file with vim, and in the function open_lxde() I commented out the lines that do handling local file paths.

melmarker

No - nobody is wondering about your problem, it's obvious . Nobody knows:
* what you want to achive
* the behaviour you expect
* the result you get

It might be that you use LXDE - only a guess. But in 99% of all cases xdg-open work just fine with mature DEs.
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)

David

I thought there was a standard for what xdg-open was supposed to do


like if you have a url that says www.google.com and you click on it, it should open in a browser and if you have a link that says file://~/Documents/ then it should open in pcmanfm

melmarker

#3
Good joke  - and again, you claimed to be a programmer: In that case i suggest

nano /usr/bin/xdg-open


Have fun reading and understanding. And btw - the very most environments try xdg-open as latest, in case of LXDE i guess that gio open is used first.

Edit: If i remember xdg-open right, there should be the open procedure with a fallback to open-generic what in case use pcmanfm as last resort.
Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin, November 11, 1755)
Never attribute to malice that which can be adequately explained by stupidity. (Hanlons razor)