Bug 371315

Summary: Ark regards Open XML files as archive rather than expose it as single document file
Product: [Frameworks and Libraries] frameworks-kparts Reporter: Chaoting Liu <brli>
Component: generalAssignee: Elvis Angelaccio <elvis.angelaccio>
Status: RESOLVED NOT A BUG    
Severity: minor CC: kdelibs-bugs-null, rthomsen6
Priority: NOR    
Version First Reported In: 5.27.0   
Target Milestone: ---   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: the test zip includes a simple OOXML created by Google doc

Description Chaoting Liu 2016-10-20 14:00:50 UTC
double click on documents in archive do have a function to preview it, but when dealing with OOXML files, Ark think it is dealing with archives and prompts another window to preview the REAL things inside, rather than consider it as binary file and ask user to extract the single file and view it with their office suite.

Reproducible: Always

Steps to Reproduce:
1. Archive an OOXML file into any format(eg. tar, tar.xz, zip, 7z, etc.)
2. Open the archive with Ark (it should use libarchive by default)
3. Double click on the OOXML file inside Ark's file list

Actual Results:  
prompt another Ark instance with the list of contained files(which are xml plain texts and so on)

Expected Results:  
view it as a single document file and use system's/user's defined office suite file to open it.

currently the workaround would be to extract the archive and open the document using file manager and/or other pathway(LO's "open" dialog etc.).
Comment 1 Chaoting Liu 2016-10-20 14:02:19 UTC
Created attachment 101662 [details]
the test zip includes a simple OOXML created by Google doc
Comment 2 Elvis Angelaccio 2016-10-20 14:14:17 UTC
Hi
(In reply to rainman59118 from comment #0)
> Ark think it is dealing with archives and
> prompts another window to preview the REAL things inside, rather than
> consider it as binary file and ask user to extract the single file and view
> it with their office suite.

Well, technically a .docx file is also a zip file, so it is an archive. What's happening here is that you're asking Ark if there is a KPart that can preview the file. And yes there is, Ark itself. This will change when we'll have the Calligra KPart, but until now this is the expected behavior.

> currently the workaround would be to extract the archive and open the
> document using file manager and/or other pathway(LO's "open" dialog etc.).
There is an easier way. Select the .docx file in Ark and click the "Open" button, it will be open by Libreoffice.
Comment 3 Chaoting Liu 2016-10-20 14:24:38 UTC
I see, so,