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 | 38170c58d324546265db7c5f40bb40133348c66b (patch) | |
tree | 701794962af630ed32dfda919f8db6bd18bf2ee2 | |
parent | 847f4c1f67c48b52e8420406ea895acbc9c36131 (diff) |
#i105092#, #159202# disable modification of shared extensions when running in office ( by JL )
-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 1262590e4f..aff8ada634 100644 --- a/desktop/source/deployment/manager/dp_manager.cxx +++ b/desktop/source/deployment/manager/dp_manager.cxx @@ -313,6 +313,18 @@ Reference<deployment::XPackageManager> PackageManagerImpl::create( that->m_readOnly = true; } } + + //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) { |