GNOME Bugzilla – Bug 424949
libgnome sets program name wrong
Last modified: 2007-05-05 14:51:39 UTC
I found that almost no applets get bug-buddy support, even though quite a few of them have the necessary information in their .server files. It turns out that libgnomoeui/gnome_segv pass the result of g_get_prgname() to bug-buddy as the application name. And from looking at the uses of g_get_prgname() through libgnome/libgnomeui/bug-buddy, it is clear that the result is expected to be the binary name - like it is documented. Unfortunately, gnome_program_preinit() sets the program name to the string that was passed as "app id" to gnome_program_init(), which is e.g. for the fish applet, "That-stupid-fish". I'll attach a patch which removes that and fixes the earlier call to use the basename of argv[0]. Maybe what was indended here was to do g_set_application_name (app_id) ?
Created attachment 85618 [details] [review] set program name correctly
I confirm this fixes bug-buddy for known applets and unknown applets are still recognized as such; thanks Matthias!
Please commit on both branches.
Committed to trunk and gnome-2-18 2007-04-01 Matthias Clasen <mclasen@redhat.com> * libgnome/gnome-program.c (gnome_program_preinit): Set the program name to the basename of argv[0]. This is expected by other parts of the stack, and e.g. makes bug-buddy work for applets again. (#424949)
*** Bug 168633 has been marked as a duplicate of this bug. ***