You are not logged in.
Pages: 1
Topic closed
I installed unrar, but I realize in the right click menu of PcmanFM there is no "extract here" option for rar files, I can do it in the CML, but I have a lot of rar, zip files to manage, that I get tired of using CML, I search the forum and Google, but have not really find any usful information.
Some one please help me, how to add "extract here" option to the right click menu of pcmanfm for ".rar" files?
Do I need to edit some configuration file, or do I need to install some file-extract application, like Xarchiver?
Thanks a lot!
:)
Last edited by yingwuzhao (2009-03-02 03:27:45)
Offline
I'm pretty sure what you need is a program like squeeze or file-roller
Offline
Great, thanks.
But how about Xarchiver?
Offline
I just did a quick search on xarchiver and it appears to be what you're looking for. I'd never heard of it before, but I think I'll actually have to check it out myself
Edit: Just tried xarchiver with pcmanfm and it worked great. Has no other dependencies too. Very nice.
Last edited by flowheat (2009-03-02 03:50:38)
Offline
Great, good luck.:D
Offline
xarchiver is a great program. Its what I use with pcmanfm. You still need to install the programs to decompress different archives though. For rar, its a program called unrar.
sudo pacman -S unrar
Offline
Yes, I just installed it.
Thanks a lot,
Offline
No, xarchiver does NOT do the job, it doesn't add "extract here" option in the right click of PCmanFM for ".rar" files
:(:(:(
Offline
I must say, that I *think* my PCmanFM once had that option ("Extract Here", "Extract To.." - but now there isnt, though Im not sure.
Anyway, Thunar got what you want and look like PCmanFM: http://foo-projects.org/~benny/projects … ve-plugin/
Just pacman -Sy thunar thunar-archive-plugin xarchiver
Restart thunar.
Works for me.
Offline
Yep, works with PCmanFM again after installing thunar-archive-plugin and xarchiver.
Offline
You can compile pcmanfm so that it has context menu entries Extract here & Extract to for both rar files and 7zip files. I've had mine like that for quite a while. I got the info from this page:-
http://stebalien.com/2008/05/pcman-file-manager-7z-and-rar-archives.html
PCMan File Manager: 7z and rar archives
By default, pcmanfm will not extract/create 7zip and Rar archives. Extracting rar archives is already implemented but not enabled by default while the ability to extract 7z archives is not implemented at all. To enable the extraction of rar and 7zip archives and the creation of 7zip archives open src/ptk/ptk-file-archiver.c:
Uncomment:
{
"application/x-rar",
NULL,
"unrar -o- e",
".rar", TRUE
}
And add this below:
{
"application/x-7z-compressed",
"7zr a -bd -y",
"7zr x -bd -y",
".7z", TRUE
}
Next, insert a comma, after the end bracket of the rar section.
The archive handlers section should endup looking like this:
const ArchiveHandler handlers[]=
{
{
"application/x-bzip-compressed-tar",
"tar --bzip2 -cvf",
"tar --bzip2 -xvf",
".tar.bz2", TRUE
},
{
"application/x-compressed-tar",
"tar -czvf",
"tar -xzvf",
".tar.gz", TRUE
},
{
"application/zip",
"zip -r",
"unzip",
".zip", TRUE
},
{
"application/x-tar",
"tar -cvf",
"tar -xvf",
".tar", TRUE
},
{
"application/x-rar",
NULL,
"unrar -o- e",
".rar", TRUE
},
{
"application/x-7z-compressed",
"7zr a -bd -y",
"7zr x -bd -y",
".7z", TRUE
}
};
Compile with a standard ./configure; make; make install or ./configure; make; checkinstall.
NB. the newly compiled pcmanfm will be found in this directory /usr/local/bin - I moved mine to /usr/bin to copy over the old one & it all worked fine. Also make sure you remember to install unrar and p7zip
Last edited by Nixie (2009-04-24 17:07:15)
Offline
Thank you. Help alot here.
"See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too." - Linus Torvalds
Offline
Offline
Pages: 1
Topic closed