You are not logged in.

#1 2009-03-02 03:26:14

yingwuzhao
Member
Registered: 2009-01-13
Posts: 109

PcmanFM right click "extract here" option missing for rar file, Help!!

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!
smile:)

Last edited by yingwuzhao (2009-03-02 03:27:45)

Offline

#2 2009-03-02 03:44:20

flowheat
Member
From: Pittsburgh, PA
Registered: 2008-09-23
Posts: 94

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

I'm pretty sure what you need is a program like squeeze or file-roller

Offline

#3 2009-03-02 03:45:42

yingwuzhao
Member
Registered: 2009-01-13
Posts: 109

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

Great, thanks.
But how about Xarchiver?

Offline

#4 2009-03-02 03:48:19

flowheat
Member
From: Pittsburgh, PA
Registered: 2008-09-23
Posts: 94

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

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

#5 2009-03-02 03:50:54

yingwuzhao
Member
Registered: 2009-01-13
Posts: 109

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

Great, good luck.:D

Offline

#6 2009-03-02 04:08:58

Fingel
Member
Registered: 2009-02-28
Posts: 98

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

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

#7 2009-03-02 04:16:29

yingwuzhao
Member
Registered: 2009-01-13
Posts: 109

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

Yes, I just installed it.
Thanks a lot, big_smile

Offline

#8 2009-03-02 04:59:03

yingwuzhao
Member
Registered: 2009-01-13
Posts: 109

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

No, xarchiver does NOT do the job, it doesn't add "extract here" option in the right click of PCmanFM for ".rar" files
sad:(:(:(

Offline

#9 2009-03-02 05:17:38

SLKDK
Member
Registered: 2008-08-11
Posts: 61

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

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

#10 2009-03-02 05:18:47

SLKDK
Member
Registered: 2008-08-11
Posts: 61

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

Yep, works with PCmanFM again after installing thunar-archive-plugin and xarchiver.

Offline

#11 2009-04-24 17:06:11

Nixie
Member
Registered: 2008-09-24
Posts: 51

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

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

Screenshots:-
2u5balx_th.jpg 2cp7omt_th.jpg

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 wink

Last edited by Nixie (2009-04-24 17:07:15)

Offline

#12 2011-08-08 07:12:19

mouni
Member
Registered: 2011-07-03
Posts: 31

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

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

#13 2011-08-08 08:09:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: PcmanFM right click "extract here" option missing for rar file, Help!!

mouni - please don't necrobump


https://wiki.archlinux.org/index.php/Fo … Bumping.27

Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB