![]() |
How to start web browser from within the code?
I'm adding button to application written in C.
The button should fire up the web browser with the given url. Any suggestions how can I do it? |
Re: How to start web browser from within the code?
use system() with a dbus-send command
|
Re: How to start web browser from within the code?
Or for a non-security-problem-way, use spawnvp(), which won't have problems with spaces and/or weird quotes and/or mistaking commands for environment variables / bash commands / .... like system() does.
|
Re: How to start web browser from within the code?
Wasn't there a simple shell command that would do the same thing?
|
Re: How to start web browser from within the code?
|
Re: How to start web browser from within the code?
Wouldn't it be better to make the DBUS call from the C-program directly rather than going through shell ?
|
Re: How to start web browser from within the code?
Code:
QDBusInterface *interface = new QDBusInterface("com.nokia.osso_browser","/com/nokia/osso_browser/request","com.nokia.osso_browser"); |
All times are GMT. The time now is 21:46. |
vBulletin® Version 3.8.8