Skip to content

Commit

Permalink
peazip-flatpak-extract-to-folder@xszabo3: Initial release (#480)
Browse files Browse the repository at this point in the history
* Extract here (in new folder) action for PeaZip (Flatpak)
  • Loading branch information
xszabo3 authored Aug 15, 2024
1 parent 667d7be commit 5ba0f73
Show file tree
Hide file tree
Showing 20 changed files with 1,035 additions and 0 deletions.
4 changes: 4 additions & 0 deletions peazip-flatpak-extract-to-folder@xszabo3/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# v1.4

- Transfer development from [personal repository](https://github.com/xszabo3/peazip-context-menu-items-nemo) to Cinnamon Spices
- Convert file structure
88 changes: 88 additions & 0 deletions peazip-flatpak-extract-to-folder@xszabo3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Extract here (in new folder) action for PeaZip(Flatpak)

Adds **Extract here (in new folder)** action to the context menu (right-click menu) for the Nemo file manager. Actions make zipping and unzipping zip (and other) files more convenient.

## Prerequisites

Install the Flatpak version of PeaZip from the Software Manager.

<img src="https://cinnamon-spices.linuxmint.com/git/actions/peazip-flatpak-extract-to-folder@xszabo3/pictures/Flatpak.png">

**Important** - These files require the Flatpak version, they will not work if you installed the .deb package from the PeaZip website.

### Install instructions

To install this action please follow the steps below:

1. To download the action either:

- Download the action through the **Actions** window from the **Download** tab. (Recommended)

<img src="https://cinnamon-spices.linuxmint.com/git/actions/peazip-flatpak-extract-to-folder@xszabo3/pictures/Download.png">

- Get it from [Cinnamon Spices](https://cinnamon-spices.linuxmint.com/actions/)
- Unpack the downloaded zip
- Paste the contents to the **~/.local/share/nemo/actions** folder

2. Place the icons in your icons folder:

1. Navigate to the icon from the **~/.local/share/nemo/actions/peazip-flatpak-extract-to-folder@xszabo3/icon_to_move/** folder
- Alternatively you can download the icons from [here](https://github.com/xszabo3/peazip-context-menu-items-nemo/tree/main/icons)

2. Copy the icons

3. Navigate to ~/.local/share/icons

<img src="https://cinnamon-spices.linuxmint.com/git/actions/peazip-flatpak-extract-to-folder@xszabo3/pictures/Icons.png">

4. Paste the icons into the folder

3. Enable the action

1. Go to the **Actions** window's **Manage** tab

<img src="https://cinnamon-spices.linuxmint.com/git/actions/peazip-flatpak-extract-to-folder@xszabo3/pictures/Actions-manage.png">

2. Check if the desired action has a checkmark in front of it

3. If not, then use the **+** button to enable the action



### How to group actions

This feature is available from Linux Mint **22**.

1. Open the **Actions** window.

<img src="https://cinnamon-spices.linuxmint.com/git/actions/peazip-flatpak-extract-to-folder@xszabo3/pictures/Actions-search.png">

2. Switch to the Layout tab

<img src="https://cinnamon-spices.linuxmint.com/git/actions/peazip-flatpak-extract-to-folder@xszabo3/pictures/Actions-window.png">

3. Click the **+** symbol and select the new submenu option

4. Choose a group name (in this case PeaZip)

5. Click *Save*

6. Now drag the actions on the new submenu with the mouse.

<img src="https://cinnamon-spices.linuxmint.com/git/actions/peazip-flatpak-extract-to-folder@xszabo3/pictures/Actions-grouped.png">

7. Click *Save*

## Older versions

You can find the older versions of this action in a separate [repository](https://github.com/xszabo3/peazip-context-menu-items-nemo).

## Sources

The files are **not** 100% written by me. You can find the license and copyright information of the original files in the files directly or in the accompanying note in the folder.

Here is a list of used sources

- [PeaZip](https://github.com/peazip/PeaZip/) - PeaZip is released under LGPLv3 by Giorgio Tani.

- [The original actions](https://github.com/badmotorfinger/nemo-peazip-context-menu/) are released under MIT by badmotorfinger.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
This text is included pursuant to the obligations of an upstream licence and must be retained in any derivatives, but it is not the licence applicable to this code
-----------------------------------------------------------------------------
MIT License

Copyright (c) 2023 badmotorfinger

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The original 3 files (add_to_archive.nemo_action, extract_here.nemo_action, extract_to.nemo_action) are released under MIT by badmotorfinger.

Reference: https://github.com/badmotorfinger/nemo-peazip-context-menu/

The file peazip-flatpak-extract-to-folder@xszabo3.nemo_action.in is modified and licensed under GPLv3.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"description": "Extract archive here (in new folder) with PeaZip",
"uuid": "peazip-flatpak-extract-to-folder@xszabo3",
"name": "Extract here (in new folder) action for PeaZip(Flatpak)",
"author": "xszabo3",
"version": "1.4"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.


This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

0. Additional Definitions.

As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1. Exception to Section 3 of the GNU GPL.

You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.

3. Object Code Incorporating Material from Library Header Files.

The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the object code with a copy of the GNU GPL and this license
document.

4. Combined Works.

You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.

d) Do one of the following:

0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.

1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)

5. Combined Libraries.

You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.

b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.

6. Revised Versions of the GNU Lesser General Public License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The icons in this folder are from peazip (https://github.com/peazip/PeaZip/tree/sources/peazip-sources/res/share/icons). The files were not modified.

PeaZip is released under LGPLv3 by Giorgio Tani.

Reference: https://github.com/peazip/PeaZip/
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# EXTRACT HERE (IN NEW FOLDER) ACTION FOR PEAZIP(FLATPAK)
# This file is put in the public domain.
# xszabo3, 2024
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: peazip-flatpak-extract-to-folder@xszabo3 1.4\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/"
"issues\n"
"POT-Creation-Date: 2024-08-15 16:17+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. metadata.json->description
#. peazip-flatpak-extract-to-folder@xszabo3.nemo_action.in->Comment
msgid "Extract archive here (in new folder) with PeaZip"
msgstr ""

#. metadata.json->name
msgid "Extract here (in new folder) action for PeaZip(Flatpak)"
msgstr ""

#. peazip-flatpak-extract-to-folder@xszabo3.nemo_action.in->Name
msgid "Extract here (in new folder)"
msgstr ""
3 changes: 3 additions & 0 deletions peazip-flatpak-extract-to-folder@xszabo3/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"author": "xszabo3"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[Nemo Action]

# Extract here (in new folder) action for PeaZip(Flatpak)
# Copyright (C) 2024 Krisztián Szabó
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# Version 1.4

Active=true
_Name=Extract here (in new folder)
_Comment=Extract archive here (in new folder) with PeaZip
Exec=flatpak run io.github.peazip.PeaZip -ext2folder %F
Icon-Name=peazip_extract
Selection=s

# The following code is from the files which are released under MIT by badmotorfinger.

Mimetypes=application/bzip2;application/gzip;application/vnd.android.package-archive;application/vnd.ms-cab-compressed;application/vnd.debian.binary-package;application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-archive;application/x-arj;application/x-brotli;application/x-bzip-brotli-tar;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/x-chrome-extension;application/x-deb;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lhz;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lz4;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lz4-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-source-rpm;application/x-rzip;application/x-rzip-compressed-tar;application/x-tar;application/x-tarz;application/x-tzo;application/x-stuffit;application/x-war;application/x-xar;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zstd-compressed-tar;application/x-zoo;application/zip;application/zstd;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5ba0f73

Please sign in to comment.