The macro by itself is not problematic if used in local files.
You can use any macro for selecting-opening a file with 
CreateUnoService("com.sun.star.ui.dialogs.FilePicker")

opening an odb and getting the name using in a macro:
oDBDoc = ThisComponent.Parent
sDocURL = oDBDoc.getURL()

returns something like:
/run/user/1000/gvfs/smb-share:server=myservername,share=XXX/YYY/ZZZ)

but using in a macro the file dialog and selecting the same .odb:
selectedfile = file_dialog.Files(0)

returns something like
smb://myservername/myservershare/thenameofthefileinURLnotation)

which is a totally different "path to file" (the one contains a URI but
the other not).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1466085

Title:
  open file dialog returns unusable network path

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1466085/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to