After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 84909 - Need gnomeprogrammodule to tie into gnome-program
Need gnomeprogrammodule to tie into gnome-program
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other other
: Normal major
: 0.4.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-06-11 18:02 UTC by Christian Fredrik Kalager Schaller
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Fredrik Kalager Schaller 2002-06-11 18:02:06 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
Comment 1 Andy Wingo 2002-06-12 23:39:13 UTC
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.
Comment 2 Thomas Vander Stichele 2002-09-14 13:53:29 UTC
documented in manual (needs improvement though) with sample code that
gets parsed and compiled.