Bug 49378 - Setting the paths (Tools > Options) with an extension fails
Summary: Setting the paths (Tools > Options) with an extension fails
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
Version:
(earliest affected)
3.5.0 Beta0
Hardware: Other All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2012-05-02 06:04 UTC by Cor Nouws
Modified: 2013-12-04 22:24 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample extension (1.41 KB, application/vnd.openofficeorg.extension)
2012-05-02 06:04 UTC, Cor Nouws
Details
working example (1.04 KB, application/vnd.openofficeorg.extension)
2012-05-03 01:09 UTC, Stephan Bergmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cor Nouws 2012-05-02 06:04:51 UTC
Created attachment 60898 [details]
sample extension

I'll attach a sample extension, that sets the properties for paths  (Tools > Options)  as follows

 <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>

After installing and restarting the Path "Work" is empty, and the pathes "Temp" and "Template" are not modified (so nothing is added)

Using this extension in 3.4.x or 3.3.x does lead to the desired effect.

Note! when using the extension, make sure that the paths used exist on your system.

(  Note! the path "Temp" is not set, in any version of LibreOffice, also when this prop is added to the node Variables
  <prop oor:name="Temp">
   <value>file://~/Documenten/DATA/LibO</value>
  </prop>
Will submit a separate issue for that  )
Comment 1 Cor Nouws 2012-05-02 06:07:52 UTC
doesn't work in the oldes 3.5.0 I have installed
Comment 2 Stephan Bergmann 2012-05-03 01:09:13 UTC
Created attachment 60950 [details]
working example
Comment 3 Stephan Bergmann 2012-05-03 01:14:12 UTC
Cannot reproduce the problem.  With a recent (Linux) libreoffice-3-5-3 build, the attached example1.oxt changes "Tools - Options... - LibreOffice - Paths - My Documents" to "/foo/bar/work" (becomes active only after restart), and adds "/foo/bar/tmpl" as default path for new files to "Tools - Options... - LibreOffice - Paths - Templates".
Comment 4 Cor Nouws 2012-05-07 07:09:47 UTC
(In reply to comment #3)
> Cannot reproduce the problem.

For the record:
Where in 3.4 the path value needs to be
      file://~/foo/bar/work
in 3.5 and master it turns out to be without the ~, so
      file:///foo/bar/work