GNOME Bugzilla – Bug 596359
Should set the process name to "orca"
Last modified: 2012-02-14 16:54:36 UTC
Orca is not setting its process name to "orca" so you cannot find it with 'ps -A' (it's one of all those python processes, but which one?) and you cannot use 'killall orca' when there's a problem with it.
To kill orca and make sure it cleans up processes appropriately, you can use the "orca -q" command from another shell. Having said that, I'd be happy to take a patch that does what you request (a Google search leads me to believe Python doesn't make this easy to do in a very portable way :-().
(In reply to comment #1) > ...a Google search leads me to believe > Python doesn't make this easy to do in a very portable way :-( FWIW, some time ago I reported the same bug[1] for accerciser and it was fixed right away! [1] https://bugzilla.gnome.org/show_bug.cgi?id=555416
For the record: (15:37:11) knocte: :) I'll eventually try to locate eitan's exact commit (16:02:18) WillieWalker: knocte: it might be: (16:02:20) WillieWalker: +gnome.program_init('accerciser', '@VERSION@', (16:02:20) WillieWalker: + properties=props, argv=['accerciser'] + sys.argv[1:]) (16:02:27) WillieWalker: From 9c3a90bafec7ff706733bdb3b6b46c614379fd3e (16:02:47) knocte: looks like it (16:03:14) knocte: (some time ago I wrapped that function in glib-sharp) (16:03:49) ragb ha salido de la sala (quit: Leaving.). (16:04:29) WillieWalker: knocte: the pain in the neck part is where to put it. If you want it in orca.py, you need to create a new orca.py.in and all that. Simple to do, but just tedious
This is fixed by atleast orca 2.32 so closing it as fixed
Actually, this one is not fixed as best as I can tell. The processes are a shell script and a python instance. Thus you cannot do a pkill orca. I'm going to re-open this one. While it's not high-priority, I think it's worth doing.
hEY, UH, YEAH, i'D SEEN IN ORCA.PYLINE 44 A COMMENT WITHSYS.ARGV[0] = "ORCA" SAYING THIS IS SO THE NAME IS ORCA. aFTER LOOKING WITH PS SOME i DISCOVERED ONLY THE SHELL SCRIPT ACTUALLY CAN BE FOUND WITH A PROCESS NAME OF ORCA. silly me ASSUMING THE CODE WORKED :-)
Created attachment 197927 [details] [review] Fix for #596359 Here is a patch that sets the process name of the Python instance to 'orca' using the setproctitle module from http://code.google.com/p/py-setproctitle/.
Review of attachment 197927 [details] [review]: So you don't think we should depend on pyxdg from freedesktop, but do think we should depend on some setproctitle from code.google.com? ;) I just committed an alternative version which will use setproctitle if it finds it, but does not require it as a dependency. Failing finding setproctitle (which is the way to bet), we attempt to fall back on libc.so.6. The latter won't make it show up as 'orca' when you do a 'ps', but it will solve the problem of not being able to kill Orca by name. And it is all wrapped in try/except goodness so as not to blow up in Solaris or BSD -- not that they meet the other dependencies of Orca, like Gtk+ 3. But that's another story. ;)