Missing nemo right-click "extract/compress files"
Solution 1:
Very simply, all you should need to do is install the nemo-fileroller
package:
sudo apt-get install nemo-fileroller
To apply the changes quit the file-manager with
nemo -q
to then (re-)start it like you normally would.
Solution 2:
Okay, I've tried lots of "solutions" but none of them work, so I went and dug out how things work, and here's how I did it on Ubuntu 14.04 and Nemo 2.2.2...
- Open up terminal and type
cd ~/.local/share/nemo/actions/
- Create a new file/action for Compress by typing
nano compress.nemo_action
-
Paste this contents into newly created file
[Nemo Action] Active=true Name=Compress... Comment=compress %N Exec=file-roller -d %F Icon-Name=gnome-mime-application-x-compress Selection=Any Extensions=any;
Save the file and exit (CTRL+X, and just Enter)
- Create a new file/action for "Extract here" by typing
nano extracthere.nemo_action
-
Paste this contents into newly created file
[Nemo Action] Active=true Name=Extract here Comment=Extract here Exec=file-roller -h %F Icon-Name=gnome-mime-application-x-compress #Stock-Id=gtk-cdrom Selection=Any Extensions=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar;7z;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz;
Save the file and exit (CTRL+X, and just Enter)
- You're done. If you still don't have Compress/Extract here options in
Nemo
, just restart or log out/in.
Creating Nemo
actions is the only way I've achieved this, I've tried several repos and tutorial of which none worked.
Solution 3:
To improve the Compress/Extract integration, I'm posting an Escape-Safe way (because folders with spaces in the name was crashing my file-roller):
Create the following .nemo_action
files and their contents, at /usr/share/nemo/actions
:
compress.nemo_action:
[Nemo Action] Active=true Name=Compress... Comment=Compress "%f" Exec=file-roller --add %F --default-dir=%P Icon-Name=gnome-mime-application-x-compress Selection=notnone Extensions=any; Quote=double
extract-here.nemo_action:
[Nemo Action] Active=true Name=Extract here Comment=Extract "%f" here Exec=file-roller --extract-here %F Icon-Name=gnome-mime-application-x-compress Selection=notnone Extensions=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz; Quote=double
extract-to.nemo_action:
[Nemo Action] Active=true Name=Extract to... Comment=Extract to a folder of your choice. Exec=file-roller --extract %F Icon-Name=gnome-mime-application-x-compress Selection=notnone Extensions=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz; Quote=double
Solution 4:
I believe the above nemo actions is missing the "Quote=double" parameter otherwise files/directories that have space(s) in their name won't work. e.g.
[Nemo Action]
Active=true
Name=Compress...
Comment=compress %N
Exec=file-roller -d %F
Icon-Name=gnome-mime-application-x-compress
Selection=any
Extensions=any;
Quote=double
Also useful is an "Extract to..." action, which allows you to select a different path where you may want to extract the files to.
e.g.
extractto.nemo_action
[Nemo Action]
Active=true
Name=Extract to...
Comment=Extract to...
Exec=file-roller -f %F
Icon-Name=gnome-mime-application-x-compress
#Stock-Id=gtk-cdrom
Selection=any
Extensions=zip;7z;ar;cbz;cpio;exe;iso;jar;tar;tar;7z;tar.Z;tar.bz2;tar.gz;tar.lz;tar.lzma;tar.xz;
Quote=double