[pygtk] gnome options
Yann Le Boulanger
asterix at lagaule.org
Tue Apr 5 17:59:14 WST 2011
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?
--
Yann
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the pygtk
mailing list