diff options
author | Caoimhe <caoimhebyrne06@gmail.com> | 2023-03-18 00:15:16 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-19 00:14:03 +0000 |
commit | 87bfb47d1f1c0bb8b53a190a8063ce1a22bb4e6f (patch) | |
tree | 5b4a23b3fd0edeb29c14a2a0ea07051153a72c93 /Base/res/apps | |
parent | de18485a2f38119de0ff1f1f562f06f81f75f793 (diff) | |
download | serenity-87bfb47d1f1c0bb8b53a190a8063ce1a22bb4e6f.zip |
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.
Diffstat (limited to 'Base/res/apps')
-rw-r--r-- | Base/res/apps/FileManager.af | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Base/res/apps/FileManager.af b/Base/res/apps/FileManager.af index 75be86b29a..aafaa44d95 100644 --- a/Base/res/apps/FileManager.af +++ b/Base/res/apps/FileManager.af @@ -2,3 +2,6 @@ Name=File Manager Executable=/bin/FileManager Category=Utilities + +[Launcher] +FileTypes=zip |