mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
bug 450467. on OSSO, use vendor and app name when calling osso_init. r=bsmedberg
This commit is contained in:
parent
f30bafec6d
commit
519c122960
@ -277,8 +277,23 @@ nsNativeAppSupportUnix::Start(PRBool *aRetVal)
|
||||
/* zero state out. */
|
||||
memset(&m_hw_state, 0, sizeof(osso_hw_state_t));
|
||||
|
||||
/* Initialize maemo application */
|
||||
m_osso_context = osso_initialize(gAppData->name,
|
||||
/* Initialize maemo application
|
||||
|
||||
The initalization name will be of the form "Vendor.Name".
|
||||
If a Vendor isn't given, then we will just use "Name".
|
||||
|
||||
Note that this value must match your X-Osso-Service name
|
||||
defined in your desktop file. If it doesn't, the OSSO
|
||||
system will happily kill your process.
|
||||
*/
|
||||
nsCAutoString applicationName;
|
||||
if(gAppData->vendor) {
|
||||
applicationName.Append(gAppData->vendor);
|
||||
applicationName.Append(".");
|
||||
}
|
||||
applicationName.Append(gAppData->name);
|
||||
|
||||
m_osso_context = osso_initialize(applicationName.get(),
|
||||
gAppData->version ? gAppData->version : "1.0",
|
||||
PR_TRUE,
|
||||
nsnull);
|
||||
|
Loading…
Reference in New Issue
Block a user