Bug 139389

Summary: Wish: Suppress Preview on large files > 500 MB, Preview of large files on accidental click freezes system for minutes. Add a config option for that
Product: [Applications] ark Reporter: Stefan Mueller <stefan.mueller>
Component: generalAssignee: Raphael Kubo da Costa <rakuco>
Status: RESOLVED FIXED    
Severity: wishlist CC: egorov, rakuco, rthomsen6
Priority: NOR Keywords: junior-jobs
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 15.07.80
Sentry Crash Report:
Bug Depends on: 165314    
Bug Blocks:    

Description Stefan Mueller 2006-12-30 10:58:17 UTC
Version:           2.6.4 (using KDE 3.5.5 "release 45" , openSUSE 10.2)
Compiler:          Target: x86_64-suse-linux
OS:                Linux (x86_64) release 2.6.18.2-34-default

Thanks for ark. Sometimes I use it, but not too often. Command-line tools (rar, tar, unzip, rm) are simpler, they don't freeze system.

Steps to reproduce:

1. Open a rar archive with a very big file in it, say 600 MB.
2. Click on that big file
3. Ark freezes, because it wants to create a preview


Expected result:

3. No freeze :-)


Some proposed solutions:

3. Time out quietly after 2 seconds, no one-click-preview if processing time to long, user will not notice that.
3. Preview file only on explicit request
3. Add a config option "[x] Do not preview [rar] files larger than [200 MB]" set by default.
Comment 1 Raphael Kubo da Costa 2010-12-08 02:18:26 UTC
Changing the default assignee in the currently open Ark bug reports to me.
Comment 2 Boris Egorov 2014-11-24 18:03:26 UTC
Do I understand correctly that Ark haven't its Settings menu yet? I've implemented limiting preview file size with kconfig compiler, and now the question is where to place this option in GUI.
Comment 3 Boris Egorov 2015-06-03 11:28:08 UTC
Git commit f961b2bc717abbccbfec499f2924d4a9cf3d32df by Boris Egorov.
Committed on 03/06/2015 at 11:14.
Pushed by egorov into branch 'frameworks'.

Suppress preview on large files

Add two config options to limit previewable file size.
REVIEW: 121231

M  +8    -0    kerfuffle/ark.kcfg
M  +7    -1    part/part.cpp

http://commits.kde.org/ark/f961b2bc717abbccbfec499f2924d4a9cf3d32df