Apache OpenOffice (AOO) Bugzilla – Issue 70388
set a standard gtk prg name
Last modified: 2007-07-06 18:02:17 UTC
gtk uses g_set_prgname to set the wmname of the app, we already use g_set_application_name to set our wmclass, similarly I'd like to use g_set_prgname to set our wmname, otherwise the default is to use the binary name used to launch OOo for this value. Using g_set_prgname will make the vclplug more consistent with the traditional one and give the same names for each plug. I have an ulterior motive of course, this prg name is the name reported to atk browsers as the root of the atk hierarchy, and we have a launch-time optimation in action which creates custom swriter.bin scalc.bin binaries as well as soffice.bin. So depending on whether OOo was originally launched as writer or calc the name of the atk hierarchy is different for us, and I'd like to keep my launch optimizaion but also have the same name here regardless of the binary name used to launch OOo.
Created attachment 39723 [details] patch to implement
committed in CWS vcl68
target
please verify in CWS vcl68
verified
seen in m194
The patch has been revoked from OOo 2.1 (branch OOE680) due to issue 72116.
Changes reverted due to issue 72116.
Need to investigate further how to deal with this. Sorry.
.
2.2.1 target needs approval.
Fixed this by mapping g_get_prgname to Application::GetAppName (after moving the initialization of the later before SVMain() get actually called). As a result, the application name reported to atk browsers will be "soffice" as soon as CWS atkbridge6 gets integrated (probably OOo 2.3). If consistency to the generic plugin is important, I propose to change the string there, as AppName seems to fit nicely to how glib prgname is specified.
@es: please verify in CWS atkbridge6.
Verified in CWS atkbridge
Ok in m219