Bug 371765 - Documents suddenly open as archives
Summary: Documents suddenly open as archives
Status: RESOLVED FIXED
Alias: None
Product: krusader
Classification: Applications
Component: krarc (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
: 377000 377759 382976 385156 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-27 20:52 UTC by Storm Engineer
Modified: 2018-05-06 00:16 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Storm Engineer 2016-10-27 20:52:05 UTC
Suddenly documents such as ODT or DOCX (probbly othes too) open as archives when double clicked instead of with the program in their file type association. I have to do "Right Click -> Open with" to open them properly.
Comment 1 Christoph Feck 2016-10-28 00:34:21 UTC
Right click the file > Properties > File Type Options. There you should be able to change the order of applications.

Technically, ODT etc. are archives, so those file types are also supported by Ark.
Comment 2 Storm Engineer 2016-10-28 12:37:30 UTC
(In reply to Christoph Feck from comment #1)
> Right click the file > Properties > File Type Options.

Did you even read my comment?

"instead of with the program in their file type association"
 = The associations are CORRECT. Ark is NOT in the list. The first element is LibreOffice.

And they are NOT opening with Ark, but within Dolphin with a "krarc:/" path, just like archives should look like when opened within Dolphin as folders.
Comment 3 Christoph Feck 2016-10-28 22:46:54 UTC
krarc:// is from Krusader.

Can you confirm that uninstalling Krusader solves the issue?
Comment 4 Storm Engineer 2016-10-29 14:16:50 UTC
Yes, after removing Krusader it opens with LibreOffice again.

But the question is, why Dolphin decided suddenly that documents should be treated as archives in regard of the "open archives as folders" option whereas before it didn't do that?

I have "open archives as folders" enabled for years, and documents always opened with LibreOffice  before.
Comment 5 Storm Engineer 2016-10-29 14:21:08 UTC
Note: Reinstalling Krusader restores the incorrect behavior.
Comment 6 Christoph Feck 2016-10-29 14:36:31 UTC
Adding Krusader maintainer for inspection.
Comment 7 Martin Sandsmark 2016-11-19 12:35:23 UTC
https://git.reviewboard.kde.org/r/129434/
Comment 8 Martin Sandsmark 2016-11-21 17:38:02 UTC
Git commit e3fad5256a5cba9f908f1f5d951907c6194040b5 by Martin T. H. Sandsmark.
Committed on 21/11/2016 at 17:37.
Pushed by sandsmark into branch 'master'.

Remove non-archive mimetypes from krarc archive mime type list

Putting non-archive mimetypes in the list of archive mimetypes confuses
other applications using KIO, like Dolphin. Getting Krusader to open
normal files as archives should be done by linking them in the Krusader
Protocol settings.
REVIEW: 129434

M  +1    -1    krArc/krarc.protocol

http://commits.kde.org/krusader/e3fad5256a5cba9f908f1f5d951907c6194040b5
Comment 9 Storm Engineer 2017-03-15 04:06:27 UTC
So why is this still happening to me?
Comment 10 Andrius Štikonas 2017-03-15 12:00:51 UTC
(In reply to Storm Engineer from comment #9)
> So why is this still happening to me?

Maybe because you haven't upgraded?
Comment 11 Alex Bikadorov 2017-03-15 13:23:21 UTC
*** Bug 377000 has been marked as a duplicate of this bug. ***
Comment 12 Elvis Angelaccio 2017-03-18 08:37:17 UTC
*** Bug 377759 has been marked as a duplicate of this bug. ***
Comment 13 livier 2017-03-20 21:39:03 UTC
from https://bugs.kde.org/show_bug.cgi?id=377000

I said it is fine now, it was a mistake.
krarc was used again to open odt file instead of libreoffice
trying to update : 
krusader est déjà installé avec la version demandée (1:2.5.0-0neon+16.04+build1)

Is not it the last release ?
Comment 14 Alex Bikadorov 2017-03-20 22:02:39 UTC
The fix is not in the last release, 2.5.0.

You actually have to change only one line. In the file "/usr/share/kservices5/krarc.protocol" the (long) argument for "archiveMimetype" must be set to
>archiveMimetype=application/x-7z,application/x-7z-compressed,application/x-ace,application/x-ace-compressed,application/x-arj,application/x-arj-compressed,application/x-cpio,application/x-lha,application/x-lha-compressed,application/x-rar,application/x-rar-compressed,application/zip,application/x-zip,application/x-zip-compressed

But this is inconvenient of course. I think we can manage a new release within the next three weeks.
Comment 15 livier 2017-03-23 14:37:00 UTC
Thanks to give me where is the file to correct, 
I saw the line to correct in the commit but did not saw where was the file !

Done, once more, seems to work now
Hope next update will erase my manual correction and work fine too

Thanks
Comment 16 Christoph Feck 2017-09-17 20:56:22 UTC
*** Bug 382976 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Feck 2017-10-04 22:24:26 UTC
*** Bug 385156 has been marked as a duplicate of this bug. ***