Libreoffice and GVFS problem opening files on a Windows share

Bug #901279 reported by Gionatan Danti
22
This bug affects 4 people
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-*.desktop launchers in /usr/share/applications.

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/applications;
- edit the various libreoffice-*.desktop substituting the line "Exec=libreoffice %U" with "Exec=libreoffice %F";
- browse the share with PCManFM and double click on the Libreoffice file;
- you will now be able to open the file with Libreoffice.

Regards.

Revision history for this message
Gionatan Danti (shodanshok) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
Vladislav Kononenko (vladislavkononenko) wrote :

I acknowledge existence of the problem. Workaround helped, thank you, Gionatan.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.