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.
b = b + ...
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




Users browsing this thread: 3 Guest(s)