[ark] [Bug 500066] Ark context-menu actions take long time to create
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Sun Mar 23 02:02:21 GMT 2025
https://bugs.kde.org/show_bug.cgi?id=500066
mclangus at proton.me changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mclangus at proton.me
--- Comment #9 from mclangus at proton.me ---
I've made a merge request that speeds up making the compress context menu, and
which should also remove the delay when clicking on the "Compress to..."
dialog, because it reuses the filename prefix which was already computed for
the names of the actions like "Compress to abcdef.tar.gz".
I'm now looking into the extract context menu, and I don't see much that can be
done to stop it reading all the mime types. One idea I had was to use the
KFileItem mime type, which is probably already computed, but we use
Kerfuffle::determineMimeType() which has some logic specific to archive mime
types which I don't think can be touched.
To me it seems like the best solution would be to only create the extract
context menu if every selected file is an archive file type. That way if we
have a bunch of files selected, we can bail early if one of the files isn't an
archive. This is what the Gwenview "Start a Slideshow" context menu service
does when not every selected file is an image. Would anyone have a problem with
this?
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the kfm-devel
mailing list