GNOME Bugzilla – Bug 109238
gnome_program_init should call g_set_application_name
Last modified: 2007-01-09 21:26:43 UTC
When the GNOME_PARAM_HUMAN_READABLE_NAME property is used with gnome_program_init it should be passed to g_set_application_name. http://lists.gnome.org/archives/desktop-devel-list/2003-March/msg00523.html
Care to attach a patch, please?
Anyone want to do this? Sounds like an easy fix?
Created attachment 35462 [details] [review] Proposed patch
Commited to HEAD and gnome-2-10.
Seems this creates a whole bunch of warnings in some cases. Adding Christian Persch to Cc: since he was the one who reported this on IRC. Could you elaborate on this Christian?
I'll just revert this patch for now so we don't get all the g_set_application_name() called more than once warnings.
Yeah, calling g_set_application_name() multiple times yields a warning, so we'd have to query whether the application name has been user-set already. I doubt this kind of API will ever make it into glib, it's just bloat as this is really supposed to be called once. I'm closing this as WONTFIX since we can't ensure that it will be called only once. One day, we'll probably get rid of GnomeProgram anyway, and g_set_application_name() actually replaces a part of its functionality.