How to find Default Web Browser in Linux ? - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: How to find Default Web Browser in Linux ? (/showthread.php?tid=3052) |
How to find Default Web Browser in Linux ? - ahenry3068 - 09-20-2024 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. RE: How to find Default Web Browser in Linux ? - bplus - 09-20-2024 Give the user a menu of browser choices? They might prefer to choose anyway. RE: How to find Default Web Browser in Linux ? - vince - 09-20-2024 you want the "xdg-open" command RE: How to find Default Web Browser in Linux ? - ahenry3068 - 09-20-2024 (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..... |