From 38170c58d324546265db7c5f40bb40133348c66b Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Wed, 16 Sep 2009 12:15:50 +0000 Subject: #i105092#, #159202# disable modification of shared extensions when running in office ( by JL ) --- desktop/source/deployment/manager/dp_manager.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 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) { -- cgit v1.2.3