GNOME Bugzilla – Bug 84909
Need gnomeprogrammodule to tie into gnome-program
Last modified: 2004-12-22 21:47:04 UTC
Ok, litte bug report based on IRC discussion (freely edited) Sopwith is CC'ed on this mail and will happily answer any questions regarding this issue. <BBB> hi guys, how do I usse gnome_init_program() in combination with for example gst_init(), both require argc/argv, but if I first do gst_init, I only see gstreamer's help on --help and nothing more... if I do gnome-init first, I get gnome's stuff on --help, but nothing for gstreamer.. <Sopwith> the right thing to do is for gstreamer to provide a gnomeprogrammodule to tie into gnome-program <Sopwith> for gnome 2.0 <Sopwith> uraeus: Basically he's saying that having two separate _init functions eats his args and doesn't play nice
How about taking a look at any of the gnome programs in gstreamer's cvs? as if this is a new problem. </sarcasm> This issue is why we support popt. Please take a look at, for instance, the code in the editor. gst-editor/src/gst-editor.c. Maybe it's main.c, i forget. hmm, ok maybe our programs don't do so well. Basically, take a look at how gst-editor passes the popt table to gnome_program_init(), and then look at how gst-launch integrates its arguments with popt. this promises to be a faq, i'm leaving this bug open until we document this.
documented in manual (needs improvement though) with sample code that gets parsed and compiled.