After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 109238 - gnome_program_init should call g_set_application_name
gnome_program_init should call g_set_application_name
Status: RESOLVED WONTFIX
Product: libgnome
Classification: Deprecated
Component: general
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: libgnome maintainer
libgnome maintainer
Depends on:
Blocks:
 
 
Reported: 2003-03-26 09:35 UTC by Tommi Komulainen
Modified: 2007-01-09 21:26 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Proposed patch (914 bytes, patch)
2005-01-05 06:07 UTC, Muktha
reviewed Details | Review

Description Tommi Komulainen 2003-03-26 09:35:25 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
Comment 1 Kjartan Maraas 2003-05-12 13:01:22 UTC
Care to attach a patch, please?
Comment 2 Kjartan Maraas 2004-03-26 18:18:28 UTC
Anyone want to do this? Sounds like an easy fix?
Comment 3 Muktha 2005-01-05 06:07:54 UTC
Created attachment 35462 [details] [review]
Proposed patch
Comment 4 Kjartan Maraas 2005-05-11 08:44:28 UTC
Commited to HEAD and gnome-2-10.
Comment 5 Kjartan Maraas 2005-06-06 10:15:10 UTC
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?
Comment 6 Kjartan Maraas 2005-06-09 08:54:44 UTC
I'll just revert this patch for now so we don't get all the
g_set_application_name() called more than once warnings.
Comment 7 Christian Neumair 2007-01-09 21:26:43 UTC
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.