seduction
 Language:
Welcome, Guest. Please login or register.
Did you miss your activation email?
2019/05/23, 00:42:12


Help

Author [EN] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: xdg-open not working with URLs  (Read 182 times)

0 Members and 1 Guest are viewing this topic.

Offline David

  • Gamer Aristocrat
  • User
  • Posts: 73
  • MAKE QUAKE GREAT AGAIN
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.
every GNU/Linux distro should come with quake (shareware floppy contents) running on a sourceport. If this happens, quake will quickly become the world's #1 first person shooter once again

Quake for GOTY 2020

Offline melmarker

  • Global Moderator
  • User
  • *****
  • Posts: 2.630
    • 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)

Offline David

  • Gamer Aristocrat
  • User
  • Posts: 73
  • MAKE QUAKE GREAT AGAIN
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
every GNU/Linux distro should come with quake (shareware floppy contents) running on a sourceport. If this happens, quake will quickly become the world's #1 first person shooter once again

Quake for GOTY 2020

Offline melmarker

  • Global Moderator
  • User
  • *****
  • Posts: 2.630
    • 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)