<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - PathSettings do not provide correct Path"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=109341">109341</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PathSettings do not provide correct Path
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.4.0.3 rc
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>BASIC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tk@mic-consulting.de
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>