[Libreoffice-bugs] [Bug 109341] New: PathSettings do not provide correct Path

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 25 15:40:02 UTC 2017


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

            Bug ID: 109341
           Summary: PathSettings do not provide correct Path
           Product: LibreOffice
           Version: 5.4.0.3 rc
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: tk at mic-consulting.de

Description:
When I use the service "com.sun.star.util.PathSettings" or the singleton
"thePathSettings", the delivered path for all internal LO pathes are in a very
strange format and not direct usable. 

For example: 
"module" delivers the following path:
"file:///C:/Program%20Files/LibreOffice%205/program/../program"

Steps to Reproduce:
1. create a basic code :


Sub Main
  oPath = createUnoService("com.sun.star.util.PathSettings")

  msgbox oPath.module
End Sub

or use singleton:

Sub Main
  oPath =
getDefaultContext.getValueByName("/singletons/com.sun.star.util.thePathSettings")

  msgbox oPath.module
End Sub

2. run the Macro
3.

Actual Results:  
see pic1 (path2.png)

Expected Results:
as in former times... I expected an usable path-string. 

for example: OpenOffice still delivers the correct path (see pic2 path.png)




Reproducible: Always

User Profile Reset: No

Additional Info:
I checked this behavior even with the 5.3.x line of LO, same strange result.

No difference between Linux or Windows versions.

Seems to me, that there is a problem of resolving internal of the returned
string. 

I can read the string... means file:///....../progam -> go back one folder (..)
-> add folder /<text>   

But I need the correct pathname as for example will delivered by "work" or
"temp". 


User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101
Firefox/53.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170725/b4748224/attachment.html>


More information about the Libreoffice-bugs mailing list