summaryrefslogtreecommitdiff
path: root/data/org.mate.engrampa.gschema.xml.in
diff options
context:
space:
mode:
authorxmusjackson <[email protected]>2023-05-14 20:57:35 -0500
committermouse <[email protected]>2023-05-29 09:43:42 +0800
commita043e0a81460a94e0732672afc3831689984caf8 (patch)
tree35dec7665b3b8747c172f8c478a59071e89d6dca /data/org.mate.engrampa.gschema.xml.in
parente4cdb9e1a846390bafef8e36085242f793464edd (diff)
downloadengrampa-a043e0a81460a94e0732672afc3831689984caf8.tar.bz2
engrampa-a043e0a81460a94e0732672afc3831689984caf8.tar.xz
Add "Extract to subdirectory" option
This commit adds an "Extract to subdirectory" option to the extract dialog which allows the user to extract the contents of the archive to a directory with the name of the archive (without the extension.) The user will be prompted if the directory must be created. file-utils.c: Improve remove_extension_from_path Rework this function so that it correctly parses and truncates files with multiple extensions like .tar.gz file-utils.c: Improve get_file_extension Improve this function to correctly identify and return supported compressed tar file extensions
Diffstat (limited to 'data/org.mate.engrampa.gschema.xml.in')
-rw-r--r--data/org.mate.engrampa.gschema.xml.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/org.mate.engrampa.gschema.xml.in b/data/org.mate.engrampa.gschema.xml.in
index fed9a1e..5b62190 100644
--- a/data/org.mate.engrampa.gschema.xml.in
+++ b/data/org.mate.engrampa.gschema.xml.in
@@ -154,6 +154,10 @@
<default>false</default>
<summary>Close dialog after decompression</summary>
</key>
+ <key name="create-subdirectory" type="b">
+ <default>false</default>
+ <summary>Create a folder with the archive name and extract there</summary>
+ </key>
</schema>
<schema gettext-domain="@GETTEXT_PACKAGE@" id="org.mate.engrampa.dialogs.add" path="/org/mate/engrampa/dialogs/add/">
<key name="current-folder" type="s">