[pygtk] Application name is '-c'
Frédéric
frederic.mantegazza at gbiloba.org
Tue Oct 14 21:06:06 WST 2008
Le 14/10/2008, "Willie Walker" <William.Walker at Sun.COM> a écrit:
>Here's the hack we did in Orca to prevent this from happening:
>
># We're going to force the name of the app to "orca" so pygtk
># will end up showing us as "orca" to the AT-SPI. If we don't
># do this, the name can end up being "-c". See bug 364452 at
># http://bugzilla.gnome.org/show_bug.cgi?id=364452 for more
># information.
>#
>import sys
>sys.argv[0] = "orca"
Bingo!
I start my app with a shell script containing:
python -c "from papywizard.scripts.main import main; main()"
(here is the -c ! Lorenzo, you where close...). I changed to:
python -c "import sys; sys.argv[0] = \"Papywizard\"; from
papywizard.scripts.main import main; main()"
and all works fine.
Thanks you very much :o)
--
Frédéric
More information about the pygtk
mailing list