Re: g_option_context_parse under cron execution
- From: "Richard Boaz" <riboaz xs4all nl>
- To: gtk-list gnome org
- Subject: Re: g_option_context_parse under cron execution
- Date: Wed, 3 Oct 2007 12:55:01 +0200 (CEST)
Hi John,
Thanks. Going through the exercise of providing a small example, the
cause of the problem became known:
I had included the following call when setting up the context:
g_option_context_add_group (context, gtk_get_option_group (TRUE));
as indicated in the documentation example. Looking into the details of
the call gtk_get_option_group(TRUE), TRUE is an indication that the
default display should be opened when parsing the command line.
So under cron, this fails, naturally.
I do not need the gtk command line options in my program (nor a display),
so simply removing this line makes everything work as required and
expected.
thanks,
richard
p.s. i still think, however, the error structure should be set; an error
occurred and the call to parse fails, why can't i know why? (thus
avoiding bothering this list?)
On 10/3/07, jcupitt gmail com <jcupitt gmail com> wrote:
...
I think the error must lie elsewhere, though I'm not sure exactly
where. Can you make a tiny standalone main.c that shows your problem?
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]