Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


https://bugs.documentfoundation.org/show_bug.cgi?id=55410

Stephan Bergmann <sbergman@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
                 CC|                            |sbergman@redhat.com

--- Comment #8 from Stephan Bergmann <sbergman@redhat.com> ---
(In reply to ritztro from comment #6)
Currently I am trying to set the value manually in desktopbackend.cxx. I am
doing this by returning the value "brent" in the Default::getPropertyValue
function. Since the officecfg/registry/data/org/openoffice/UserProfile.xcu
has this:
<prop oor:name="givenname">
      <value install:module="unixdesktop"
oor:external="com.sun.star.configuration.backend.DesktopBackend givenname"/>
</prop>

The install:module="unixdesktop" attribute means that this oor:external value
will only be used on Unix (Linux), not on Windows.  Something like

diff --git a/officecfg/Configuration_officecfg.mk b/officecfg/Configuration_officecfg.mk
index 7e2af03..b7e8625 100644
--- a/officecfg/Configuration_officecfg.mk
+++ b/officecfg/Configuration_officecfg.mk
@@ -69,6 +69,7 @@ $(eval $(call gb_Configuration_add_spool_modules,registry,officecfg/registry/dat
        org/openoffice/Setup-reportbuilder.xcu \
        org/openoffice/Setup-start.xcu \
        org/openoffice/UserProfile-unixdesktop.xcu \
+       org/openoffice/UserProfile-unxwnt.xcu \
        org/openoffice/VCL-gconflockdown.xcu \
        org/openoffice/VCL-unixdesktop.xcu \
        org/openoffice/Office/Accelerators-macosx.xcu \
diff --git a/officecfg/registry/data/org/openoffice/UserProfile.xcu 
b/officecfg/registry/data/org/openoffice/UserProfile.xcu
index b41756a..c206366 100644
--- a/officecfg/registry/data/org/openoffice/UserProfile.xcu
+++ b/officecfg/registry/data/org/openoffice/UserProfile.xcu
@@ -20,7 +20,7 @@
 <oor:component-data xmlns:oor="http://openoffice.org/2001/registry"; 
xmlns:install="http://openoffice.org/2004/installation"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
oor:name="UserProfile" oor:package="org.openoffice">
   <node oor:name="Data">
     <prop oor:name="givenname">
-      <value install:module="unixdesktop" 
oor:external="com.sun.star.configuration.backend.DesktopBackend givenname"/>
+      <value install:module="unxwnt" 
oor:external="com.sun.star.configuration.backend.DesktopBackend givenname"/>
     </prop>
     <prop oor:name="sn">
       <value install:module="unixdesktop" 
oor:external="com.sun.star.configuration.backend.DesktopBackend sn"/>
diff --git a/postprocess/CustomTarget_registry.mk b/postprocess/CustomTarget_registry.mk
index a568832..f10c18b 100644
--- a/postprocess/CustomTarget_registry.mk
+++ b/postprocess/CustomTarget_registry.mk
@@ -312,6 +312,7 @@ postprocess_FILES_main += \
        $(postprocess_MOD)/org/openoffice/Office/Paths-unixdesktop.xcu \
        $(postprocess_MOD)/org/openoffice/Office/Paths-unxwnt.xcu \
        $(postprocess_MOD)/org/openoffice/UserProfile-unixdesktop.xcu \
+       $(postprocess_MOD)/org/openoffice/UserProfile-unxwnt.xcu \
        $(postprocess_MOD)/org/openoffice/VCL-unixdesktop.xcu
                # Inet-unixdesktop.xcu must come after Inet.xcu
                # VCL-unixdesktop.xcu must come after VCL.xcu
@@ -322,6 +323,7 @@ postprocess_FILES_main += \
        $(postprocess_MOD)/org/openoffice/Office/Accelerators-unxwnt.xcu \
        $(postprocess_MOD)/org/openoffice/Office/Common-wnt.xcu \
        $(postprocess_MOD)/org/openoffice/Office/Paths-unxwnt.xcu \
+       $(postprocess_MOD)/org/openoffice/UserProfile-unxwnt.xcu \
        $(postprocess_MOD)/org/openoffice/ucb/Configuration-win.xcu
                # Inet-wnt.xcu must come after Inet.xcu
 postprocess_DRIVERS += ado

(and rebuilding at least officecfg and postprocess) should make your changes
work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.