( Follow up from Bug 49378 ) An extension to set the various paths, does not modify the "Temp" path. That however is possible via the UI. I do not see this working in any version of LibreOffice (and doubt if it does in OOo, where the attached extension in the other bug fails all together). Contents of the Path.xcu: <node oor:name="Variables"> <prop oor:name="Work"> <value>file://~/Documenten/DATA/LibO</value> </prop> </node> <node oor:name="Paths"> <node oor:name="Temp"> <prop oor:name="WritePath"> <value>file://~/Documenten/DATA/LibO</value> </prop> </node> <node oor:name="Template" oor:op="fuse"> <prop oor:name="WritePath"> <value>file://~/Documenten/DATA/LibO</value> </prop> </node> </node> It does not make a difference when the following prop is added to the node Variables and removed from the node Paths : <prop oor:name="Temp"> <value>file://~/Documenten/DATA/LibO</value> </prop>
Stephan Bergmann committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=920db17e94a8880658090f0887f788db0b15e2a2 Related fdo#49379: Some old Paths need to be nillable after all
Created attachment 60946 [details] Sample extension to change temp path Turns out these paths are stored in two different formats in the configuration, an old format (/org.openoffice.Office.Common/Path) and a new format (/org.openoffice.Office.Paths/Paths), and you explicitly need to deactivate the old format if you store something in the new format (cf. PathSettings::impl_storePath in framework/source/services/pathsettings.cxx). The attached temp.xcu is an example extension to change the temp path (works on current master).
(In reply to comment #2) > The attached temp.xcu is an example extension to change the temp path (works on > current master). thanks. Works on 3.5 too. And for the record, setting the Work path in 3.5 and master needs a similar approach: <item oor:path="/org.openoffice.Office.Common/Path/Current"> <prop oor:name="Work" oor:op="fuse"> <value xsi:nil="true"/> </prop> </item> <item oor:path="/org.openoffice.Office.Common/Path/Info"> <prop oor:name="WorkPathChanged" oor:op="fuse"> <value>true</value> </prop> </item> <item oor:path="/org.openoffice.Office.Paths/Paths/org.openoffice.Office.Paths:NamedPath['Work']"> <prop oor:name="WritePath" oor:op="fuse"> <value>file:///foo/bar/work</value> </prop> </item>