Siduction Forum

Siduction Forum => Software - Support => Topic started by: David on 2019/03/03, 03:42:43

Title: xdg-open not working with URLs
Post by: David on 2019/03/03, 03:42:43
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.
Title: Re: xdg-open not working with URLs
Post by: melmarker on 2019/03/03, 11:14:06
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.
Title: Re: xdg-open not working with URLs
Post by: David on 2019/03/06, 05:34:46
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
Title: Re: xdg-open not working with URLs
Post by: melmarker on 2019/03/06, 10:07:19
Good joke  - and again, you claimed to be a programmer: In that case i suggest
Code: [Select]
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.