Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find Default Web Browser in Linux ?
#1
I want a program I'm working on to open a web page using the default browser.    Program is cross-platform and will be compiled for both WIN64 & LINUX.    Windows is easy here I just shell("start "+URL$).    I've figured out that in linux I can just shell "firefox  "+URL$ or shell "google-chrome " + URL$ and that works, but I don't know how to find the DEFAULT browser it's not in the ENVIRON$() and I'm not really sure how to go about it.
Reply
#2
Give the user a menu of browser choices?

They might prefer to choose anyway.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#3
you want the "xdg-open" command
Reply
#4
(09-20-2024, 01:02 PM)vince Wrote: you want the "xdg-open" command

   Thanks Vince.   That's exactly what I'm looking for.    Almost 30 years using Linux.   I still find things I have never used.....  Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  performance drop on LINUX with PSET in v4.2 Herve 12 943 11-20-2025, 02:00 PM
Last Post: SpriggsySpriggs
  find color of a pixel PhilOfPerth 8 740 10-09-2025, 05:20 PM
Last Post: SMcNeill
  Problem with font in Teletext browser. SquirrelMonkey 7 742 08-27-2025, 11:38 AM
Last Post: BDS107
  keyboard issue ? SHIFT + TAB not detected (linux) Herve 13 1,758 08-27-2025, 09:47 AM
Last Post: Herve
  _MessageBox ignores default button johngreening 2 597 04-27-2025, 07:34 PM
Last Post: hsiangch_ong

Forum Jump:


Users browsing this thread: 1 Guest(s)