summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/deployment/manager/dp_manager.cxx12
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)
{