On 04/05/2011 11:59 AM, Yann Le Boulanger wrote:
Hi,

In my PyGTK grogram, I try to use gnome session. I'm able to make gnome
start my program on startup, but it launches it with some command line
optins like --sm-config-prefix, --sm-client-id, ...

The problem is that my application doesn't accept unknown command line
options. So I'm searching a solution to tell gnome to parse them, and
give me only the remaining option. Is it the correct way to do that?

But it seems I have to use GOptionContext, but that doesn't seem to
exist in PyGTK.

Any idea how I can separate gnome session options from others? And maybe
how I can save my program preferences in gnome session and get them when
my program is restarted?


Nobody uses gnome session with pygtk? How do you handle that?

Thanks in advance for any help
--
Yann
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to