How to open the default web browser from in C?
We're planning on switching to using HTML help for some of our software ...but I don't know how to open a web browser from within an application. Here's the particulars and the challenge:
We program entirely in C, using GTK+, and release linux AND Windoze releases. Currently, the Linux side opens a window with help text in it (no active links!!) and on the Windoze side, we use the MS help system (compiled help files, .chm etc).
I assume that opening a browser from a Windoze app isn't so hard ...the default browser is probably available from the registry and no big deal to find and then make a system call.
For Linux however, noting that we use RedHat, Ubuntu, Suze, and CentOS, I don't know how to determine what the default web browser (and path) so I can call it with a system call... Anyone? I know that one option is to use a layout engine like GtkHTML, but we'd really like to just call a web browser instead...
|A Project to Guarantee Better Security for Open-Source Projects||Aug 27, 2015|
|Concerning Containers' Connections: on Docker Networking||Aug 26, 2015|
|My Network Go-Bag||Aug 24, 2015|
|Doing Astronomy with Python||Aug 19, 2015|
|Build a “Virtual SuperComputer” with Process Virtualization||Aug 18, 2015|
|Firefox Security Exploit Targets Linux Users and Web Developers||Aug 17, 2015|
- A Project to Guarantee Better Security for Open-Source Projects
- Concerning Containers' Connections: on Docker Networking
- Problems with Ubuntu's Software Center and How Canonical Plans to Fix Them
- My Network Go-Bag
- Firefox Security Exploit Targets Linux Users and Web Developers
- Doing Astronomy with Python
- Build a “Virtual SuperComputer” with Process Virtualization
- Three More Lessons
- diff -u: What's New in Kernel Development
- Calling All Linux Nerds!