Re: help with exec in glade
- From: Havoc Pennington <hp redhat com>
- To: günther <guenther rapp-informatik de>
- Cc: gtk-app-devel-list gnome org, satyajit parekh <parekh_satyajit yahoo com>
- Subject: Re: help with exec in glade
- Date: 02 Mar 2002 09:41:52 -0500
günther <guenther rapp-informatik de> writes:
Thera are two way under UNIX / LINUX to execute
And in GTK 2 there's a new way that's much better than either of those
options - g_spawn_* API:
http://developer.gnome.org/doc/API/2.0/glib/glib-spawning-processes.html
People usually make a ton of mistakes using fork/exec directly in a
GUI app (because it's really hard to report errors correctly, put file
descriptors in the right place, etc. - look at the size of the gspawn
implementation). system() is easy to use but goes via the shell, which
generally creates bugs because people don't handle all the problems
that can introduce. So g_spawn_* is supposed to help out.
Be sure to read about GError when using it:
http://developer.gnome.org/doc/API/2.0/glib/glib-error-reporting.html
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]