Re: [pygtk] gnome options

2011-04-21 Thread Robert Schroll

On 04/21/2011 04:37 PM, Yann Leboulanger wrote:

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


OptionContext is in gobject, at least for me (2.21.1).  Can't help you 
with the rest, I'm afraid.


Robert
___
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/


Re: [pygtk] gnome options

2011-04-21 Thread Yann Leboulanger

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/