[pygtk] gnome options

Yann Leboulanger asterix at lagaule.org
Fri Apr 22 04:37:00 WST 2011


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


More information about the pygtk mailing list