Difference between revisions of "PCmanFM-Qt"
Views
Actions
Namespaces
Variants
Tools
no edit summary
imported>Excalibur1234 |
imported>Qanjaro |
||
Line 59: | Line 59: | ||
Name[en]=Default profile | Name[en]=Default profile | ||
SelectionCount==1</pre> | SelectionCount==1</pre> | ||
= “Compress” custom action = | |||
Create and edit the action file (compress.desktop) either by using file manager or by issuing these terminal commands one at a time (replace <code>juffed</code> with your text editor if it’s different): | |||
<pre>touch ~/.local/share/file-manager/actions/compress.desktop | |||
juffed ~/.local/share/file-manager/actions/compress.desktop</pre> | |||
Paste the below content in <code>compress.desktop</code>: | |||
<pre>[Desktop Entry] | |||
Type=Action | |||
Name[en]=Compress | |||
Icon=application-x-compressed-tar | |||
Profiles=profile-zero; | |||
[X-Action-Profile profile-zero] | |||
MimeTypes=all/all; | |||
Exec=apack %d/%n.tar.gz %F | |||
Name[en]=Default profile | |||
SelectionCount==1</pre> | |||
This will create a YOUR_USERNAME.tar.gz archive from the selected files/folders in the current directory. (You may need to change the icon in the above code if you don't have oxygen icons.) | |||
= “Extract” custom action = | |||
Create and edit the action file (extract.desktop) either by using file manager or by issuing these terminal commands one at a time (replace <code>juffed</code> with your text editor if it’s different): | |||
<pre>touch ~/.local/share/file-manager/actions/extract.desktop | |||
juffed ~/.local/share/file-manager/actions/extract.desktop</pre> | |||
Paste the below content in <code>extract.desktop</code>: | |||
<pre>[Desktop Entry] | |||
Type=Action | |||
Name[en]=Extract | |||
Icon=package-x-generic | |||
Profiles=profile-zero; | |||
[X-Action-Profile profile-zero] | |||
MimeTypes=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-ar;application/x-arj;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;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-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/zip;multipart/x-zip; | |||
Exec=atool --extract-to=%d %f | |||
Name[en]=Default profile | |||
SelectionCount==1</pre> | |||
This will uncompress the selected archive into the current directory. (You may need to change the icon in the above code if you don't have oxygen icons.) | |||