Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  xdg-open not working with URLs  (Read 1676 times)

David

  • Guest
xdg-open not working with URLs
« 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.

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
Re: xdg-open not working with URLs
« Reply #1 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.
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

  • Guest
Re: xdg-open not working with URLs
« Reply #2 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

Offline melmarker

  • User
  • Posts: 2.799
    • g-com.eu
Re: xdg-open not working with URLs
« Reply #3 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.
« Last Edit: 2019/03/06, 10:11:39 by melmarker »
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)