Libreoffice and GVFS problem opening files on a Windows share
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libreoffice (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I have problems opening ODT, ODS and other Libreoffice files on a Windows share. The problem is that using PCManFM (LXDE default filemanager), double clicking on a file cause Libreoffice to starts, but the process suddenly terminate.
I found that this is caused by GVFS's file URI (eg: smb://...) not being recognized by Libreoffice (yes, I installed the gtk and gnome integration packages). So LIbreoffice try to open the file but it can't and so it immediatly exits.
The solution is simple: launch Libreoffice passing the %F (filepath) parameter and _not_ the %U (URI) one. It can be done simply modifying the libreoffice-
Please note that, using Nautilus, the problem does not shows because Nautilus appear to always pass filepath, and not URI, to Libreoffice (and to other applications, probably).
Steps to reproduce:
- create a windows share and copy a ODT, ODS or any other Libreoffice file on it;
- browse the share with PCManFM and double click on the Libreoffice file;
- you will see Libreoffice starting but it will sudden exits.
Steps to workaround:
- go in /usr/share/
- edit the various libreoffice-
- browse the share with PCManFM and double click on the Libreoffice file;
- you will now be able to open the file with Libreoffice.
Regards.
Status changed to 'Confirmed' because the bug affects multiple users.