Bug 384991

Summary: Open XML files get opened in Ark instead of LibreOffice (or other specified app)
Product: [Frameworks and Libraries] frameworks-kcoreaddons Reporter: smihael <smihael>
Component: generalAssignee: Michael Pyne <mpyne>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: elvis.angelaccio, jacquerooster123, kde, kdelibs-bugs, nate, simonandric5
Priority: NOR    
Version: 5.37.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Settings

Description smihael 2017-09-23 11:12:42 UTC
Created attachment 107968 [details]
Settings

Dolphin and other KDE apps open Ark instead of LibreOffice/WPS for editing xlsx, docx and pptx files, even though app associations are correctly set (see Screenshot). 

The problem is that kmimetypefinder5 (in comparison to kmimetypefinder) apparently evaluates the content and not the ending.


$ kmimetypefinder5 test.xlsx
application/zip

$ kmimetypefinder test.xlsx
application/wps-office.xlsx
(accuracy 100)
Comment 1 jackrooster 2017-10-21 17:33:14 UTC
Someone posted this problem on the KDE Facebook group page. I tried it on my computer and got the same result.
Comment 2 Nate Graham 2017-11-07 20:48:41 UTC
Smells like https://bugs.kde.org/show_bug.cgi?id=371765, though that should have been fixed...

Do you have Krusader installed and/or does the problem go away if you apply the diff in https://cgit.kde.org/krusader.git/commit/?id=e3fad5256a5cba9f908f1f5d951907c6194040b5

to /usr/share/kservices5/krarc.protocol?
Comment 3 Christoph Feck 2017-11-08 20:09:01 UTC
kmimetypefinder5 only uses KF5CoreAddons, so it is unrelated to the krarc issue, which registers using KService.

It might be a Qt bug, though.
Comment 4 Nate Graham 2017-11-11 00:46:55 UTC
*** Bug 386728 has been marked as a duplicate of this bug. ***
Comment 5 Elvis Angelaccio 2017-11-12 15:23:36 UTC
What's your version of shared-mime-info?

Seems to work fine here (shared-mime-info 1.9):

$ kmimetypefinder5 test.xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

$ xdg-mime query filetype test.xlsx 
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Comment 6 Elvis Angelaccio 2017-11-12 15:26:17 UTC
Ah right, Neon. Stuck with the very old shared-mime-info shipped by Ubuntu 16.04 :/
Comment 7 Nate Graham 2018-01-30 22:47:09 UTC
Shall we close this RESOLVED DOWNSTREAM, then, and try to poke distros to update the package?
Comment 8 Elvis Angelaccio 2018-01-31 21:32:38 UTC
Someone on Neon should try to update its shared-mime-info install and check whether that fixes the bug. It could still be an issue on our side, in theory.
Comment 9 Nate Graham 2018-01-31 21:41:13 UTC
I gave it a whirl. Neon has 1.5 by default. Upgrading to 1.8 solves it. Neon bug: Bug 389724