summaryrefslogtreecommitdiff
path: root/officecfg
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-24 11:38:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-25 10:45:27 +0000
commit838b77f5f3d6d8fd98891e99a23ff78a6a357cb2 (patch)
treeed43d6be36f80ffc9fb90b61bd7189451105e03b /officecfg
parent1e0541fadf847e30053c0d8b29f90bdfaecd6be6 (diff)
Resolves: rhbz#1065807 use xdg ~/Templates for default Template location
(if it exists) Change-Id: I98fc9fd54d1f56c8bed24ce4d2ebf53756ded2cc
Diffstat (limited to 'officecfg')
-rw-r--r--officecfg/registry/data/org/openoffice/Office/Paths.xcu13
1 files changed, 13 insertions, 0 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/Paths.xcu b/officecfg/registry/data/org/openoffice/Office/Paths.xcu
index 4b5ec7dd2f8f..2ef605e1dabf 100644
--- a/officecfg/registry/data/org/openoffice/Office/Paths.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/Paths.xcu
@@ -160,8 +160,21 @@
<node oor:name="InternalPaths">
<node oor:name="$(insturl)/@LIBO_SHARE_FOLDER@/template/$(vlang)" oor:op="fuse"/>
</node>
+ <!--
+ On unix check of we have a ~/Templates and use that as the write path.
+ On other platforms, or if ~/Templates doesn't exist, use the traditional
+ $(userurl)/template path.
+
+ If we end up using the new ~/Templates as the write path, we then want
+ to have $(userurl)/template in our userpath for any templates left behind
+ in that dir.
+ -->
<prop oor:name="WritePath">
<value>$(userurl)/template</value>
+ <value install:module="unixdesktop" oor:external="com.sun.star.configuration.backend.DesktopBackend TemplatePathVariable"/>
+ </prop>
+ <prop oor:name="UserPaths">
+ <value install:module="unixdesktop">$(userurl)/template</value>
</prop>
</node>
<node oor:name="UIConfig" oor:op="fuse" oor:mandatory="true">