LibreOffice - Cannot open files from Samba/Windows share, Generic Input/Output error when opening

On Debian Jessie 8 I could not open regular document files from a Samba/Windows share.

The solution was found here:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1253620

Open a terminal, go root and edit the desktop links for the LibreOffice applications:
/usr/share/applications/

(/usr/lib/libreoffice/share/xdg/ was mentioned here before for some reason...)

You will need to edit the links for respective application, eg writer.desktop, base.desktop, impress.desktop and calc.desktop.

What you need to edit is the following line in the files:
X-GIO-NoFuse=true

set it to false:

X-GIO-NoFuse=false

Or, use this one liner, thanks to the link above:

sudo sed -i 's/X-GIO-NoFuse=true/#X-GIO-NoFuse=true/' /usr/share/applications/libreoffice-*



Debian Stretch 9

The same behaviour exists on Debian Stretch 9. But the sed solution does not work. It only reveals another error - "Generic input/output error when opening [filename]".

I found a solution for Debian Stretch 9.

On this OS you SHALL have X-GIO-NoFuse set to true - the opposite from Debian Jessie 8.

So if you still have leftovers from Jessie, do this:
sudo sed -i 's/#X-GIO-NoFuse=true/X-GIO-NoFuse=true/' /usr/share/applications/libreoffice-*

Make sure libreoffice is completely installed - it seems like an upgrade from 8 to 9 misses some packages:
apt-get install libreoffice libreoffice-gnome

NOTE the installation of libreoffice-gnome! THIS is the key to get it working.

This is a personal note. Last updated: 2017-08-17 14:06:41.



LinkedIn
Klebe.se

Don't forget to pay my friend a visit too. Joakim