open file dialog returns unusable network path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libreoffice (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
using a macro to open an open file dialog and trying to catch the filename and path I get an unusable path.
I open the file dialog in the directory where the odb file is (a network place) using:
oDBDoc = ThisComponent.
oDBDoc = ThisComponent.
If (Not GlobalScope.
GlobalScope.
End If
If (oDBDoc.
sDocURL = oDBDoc.getURL()
uDocPath = DirectoryNameou
sDocPath = ConvertFromUrl(
MsgBox sDocPath
Else
MsgBox "No running component! Exiting!"
End if
msgbox shows:
/run/user/
file_dialog = CreateUnoServic
ucb = createUnoServic
AddFiltersToDi
'init_path = ConvertToUrl(
If ucb.Exists(
End If
open_status = file_dialog.
If open_status = 1 Then
selectedfile = file_dialog.
End If
file_dialog.
After selecting in that directory any file the returned name is
smb://myservern
ConvertFromUrl returns the exact same filename (with smb and in URL notation).
1
lsb_release -rd
Description: Ubuntu 14.04.2 LTS
Release: 14.04
2
apt-cache policy libreoffice
libreoffice:
Εγκατεστημένα: 1:4.2.8-0ubuntu2
Υποψήφιο: 1:4.2.8-0ubuntu2
Πίνακας Έκδοσης:
*** 1:4.2.8-0ubuntu2 0
500 http://
500 http://
100 /var/lib/
1:
500 http://
Changed in libreoffice (Ubuntu): | |
status: | Expired → New |
xoristzatziki, thank you for reporting this and helping make Ubuntu better.
Could you please provide the macro that demonstrates this problem?