Bug 59007

Summary: FILEOPEN .doc impossible from file explorer
Product: LibreOffice Reporter: Philip Aston <philip.aston>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: LibreOffice, philip.aston
Priority: medium    
Version: 3.6.2.2 release   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description Philip Aston 2013-01-04 00:15:25 UTC
I have a workaround, so the solution I would request is to modify the installer to prevent this error.

When I double click,or select/rightclick>>open a .doc file, a message appeared stating there is no application for this file type and giving options to search/install from internet. However, I can open by starting libreoffice then opening the file from the menus.

I have traced the problem to here:

the relevant entry in /usr/share/applications/mimeinfo.cache was:
application/msword=kde4-words.desktop;

It should read "kde4/words.desktop" i.e. point to a file within subdir kde4;  there is no file kde4-words.desktop.

and,probably a related error:

words.desktop has not been modified to make libreoffice the default app for files of this type (although might be capable of modification from GUI now that libreoffice can be opened from the browser). It remains as Calligra (native to fedora17).

There is no command to start libreoffice unless an alias is created, so, for now, the command is /opt/libreoffice3.6/program/swriter, so the relevant line in words.desktop  is: Exec=/opt/libreoffice3.6/program/swriter %u

(Version 3.6.2.2 (Build ID: da8c1e6))
Comment 1 Rainer Bielefeld Retired 2013-01-04 07:49:11 UTC
@Philip:
Most common use of word "browser" is for an internet browser, but I believe we are talking about something like a file explorer?
All you tell looks like an installation problem, we need all info concerning your 
* Linux Version / Localization / ... 
* LibO download source
* way how you installed (update or new, ...)
Comment 2 Philip Aston 2013-01-06 19:44:58 UTC
Rainer, details as follows:
Fedora 17, UK, kernel 3.6.3-1.

I have a variant on the native system; the desktop included is gnome but I changed to KDE.I have checked dates in relevant directories and am sure that KDE was in place before I installed LibO - but there is a possibility that the LibO installer would have worked properly with gnome (which is no longer available on my system).
LibO version - I haven't retained the zip file, but believe it was from http://www.libreoffice.org/download, I installed the rpm from there, accepting the en-US version offered. Information from the {help}{about} menu indicates version 3.6.2-2 (whereas I note the latest version is LibreOffice 3.6.4 Final (2012-12-05). This was a new installation.
Yes, Nautilus is as you say a file explorer.
Comment 3 Rainer Bielefeld Retired 2013-01-06 21:34:12 UTC
@Philip Aston 
Thank you, I will try to find out more tomorrow.
Comment 4 Philip Aston 2013-01-06 23:28:30 UTC
The following may help:
 I have also made the corresponding change to the entry in /usr/share/applications/mimetypes,info, replacing application/vnd.ms-excel=kde4-sheets.desktop;
 with application/vnd.ms-excel=kde4/sheets.desktop;
 
 and /usr/share/applications/kde4/sheets.desktop, replacing Exec=calligrasheets % with Exec=/opt/libreoffice3.6/program/scalc %u

Hopefully I have discovered this just in time: there is a consistent mistake in the /usr/share/applications/kde4 directory. All the file references are kde4-{filename} where they should be kde4/{filename}. This is an issue for KDE so I will now raise it with them.

AFAICT the LibO issue is the fact that the relevant files for this desktop environment are not modified to enable LibO to open from the file explorer. This probably relates to other office docs, e.g. "powerpoint".
Comment 5 QA Administrators 2013-09-24 01:54:49 UTC
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team
Comment 6 Maxim Monastirsky 2013-11-10 15:24:48 UTC
@Philip Aston: The files at /usr/share/applications/kde4/ belong to Calligra package, and you shouldn't modify them with the LibreOffice values! LibreOffice have it's own .desktop files called libreoffice-writer.desktop and libreoffice-calc.desktop, which do include an association with doc and xls files. So probably you're missing those files. The relevant rpm file contains 'freedesktop-menus' in it's name. In versions prior to 4.1, that rpm located in 'desktop-integration' folder inside the tar.gz file.