diff options
author | Rüdiger Timm <rt@openoffice.org> | 2009-09-16 12:15:50 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2009-09-16 12:15:50 +0000 |
commit | f9d126374cdc88d4d9a0d6002bb36d6576d24546 (patch) | |
tree | 164f18d9dbc555d1b509e80aa7c7c54424792e3f /desktop | |
parent | 17f1988c7649d4239ba675040bf7dc145f3e5423 (diff) |
#i105092#, #159202# disable modification of shared extensions when running in office ( by JL )
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/manager/dp_manager.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/source/deployment/manager/dp_manager.cxx b/desktop/source/deployment/manager/dp_manager.cxx index 05e514305415..d7177f90dc77 100644 --- a/desktop/source/deployment/manager/dp_manager.cxx +++ b/desktop/source/deployment/manager/dp_manager.cxx @@ -314,6 +314,18 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create( } } + //Workaround. See issue http://www.openoffice.org/issues/show_bug.cgi?id=99257 + //This prevents the copying of the common.rdbf and native rdbs. It disables the + //feature to add shared extensions in a running office. + if (!that->m_readOnly && context.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("shared") )) + { + OUString sNoRdb; + ::rtl::Bootstrap::get(OUSTR("NORDBCOPY"), sNoRdb); + if (sNoRdb.equalsIgnoreAsciiCase(OUSTR("true")) + && dp_misc::office_is_running()) + that->m_readOnly = true; + } + if (!that->m_readOnly && logFile.getLength() > 0) { const Any any_logFile(logFile); |