| Summary: | Setting the Temp path (Tools > Options) impossible with an extension | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Cor Nouws <cno> |
| Component: | Extensions | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | enhancement | CC: | cno, sberg.fun |
| Priority: | medium | ||
| Version: | Inherited From OOo | ||
| Hardware: | Other | ||
| OS: | All | ||
| Whiteboard: | target:3.6.0 | ||
| Crash report or crash signature: | Regression By: | ||
| Attachments: | Sample extension to change temp path | ||
|
Description
Cor Nouws
2012-05-02 06:22:30 UTC
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> |