1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

FileManager: Extract .zip files to a temporary folder when opened

Prior to this commit, when you double-click a .zip file to open it, it
gets opened in Text-Editor as there is no other file association.

Now, when FileManager is invoked with a .zip file as the first argument,
a temporary directory will be created and the .zip will be extracted
into it. Once the FileManager window is closed, Core::TempFile will
delete the temporary directory.

This adds something like what we see in other operating systems' file
explorers, except for the fact that most other operating systems will
treat the .zip file as its own independent read-only filesystem. It
would be nice to do that in the future, but I feel like this is
sufficient for now.
This commit is contained in:
Caoimhe 2023-03-18 00:15:16 +00:00 committed by Linus Groh
parent de18485a2f
commit 87bfb47d1f
2 changed files with 32 additions and 2 deletions

View file

@ -2,3 +2,6 @@
Name=File Manager
Executable=/bin/FileManager
Category=Utilities
[Launcher]
FileTypes=zip