You are not logged in.

#1 2009-08-14 09:02:31

evilgold
Member
Registered: 2008-10-30
Posts: 120

file-roller issues...or why i prefer CLIs

I tend to stay away from GUIs, and this is just one example of why i prefer the terminal and (in general) the arch way of doing things.

I used to be able to extract files with file-roller by right clicking on them and hitting "extract here". with archives that where multiple files (like R00,R01, etc) i could do this on any file and it worked. But i recently reinstalled my system, and its not worked on any files aside from the first one. It also doesnt work at all with zip files. The command line tools unrar and unzip both work just fine, so i guess file-roller is doing something wrong. I always end up with "CRC Failed".

Now, i dont really care about this specific issue because its just as easy for me to use the terminal to do this, and i probably will figure it out eventually (although any suggestions are welcome).  But i am wondering if anyone else has delt with something similar,

It seems like every time i switch over to using gnome i come across some issue like this, where the GUI just ends up complicating matters and i switch back to Awesome or window maker...but the other people who get on my computer from time to time really dont like that. It always leaves me asking the question "whats so hard about memorizing commands"... but i suppose thats for another forum, and another target audience.

Really what i'd like to know is do other Archers come across similar situations, and end up falling back to the "simpler" solutions? And if you have other people who use your computer do they find it frustrating when your logged in with AwesomeWM or some other less then newb-friendly WM. (i know you can just make them a user account, but say they just want to get on FireFox to look something up real quick).

Offline

#2 2009-08-14 10:04:30

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: file-roller issues...or why i prefer CLIs

I am often in the same situation. I tried KDE 4.3 to find out that it is still frustratingly hard to stop it from taking control of my ALSA configuration. (I have an unusual soundcard). There isn't a simple "I want to handle my soundcard myself with /etc/asound.conf, thank you"-option in KDE :< So I just went back to Openbox <_< CLI/Standalone WM never fails, that's very true smile

Offline

#3 2009-08-14 10:17:42

Arisna
Member
Registered: 2009-02-13
Posts: 81

Re: file-roller issues...or why i prefer CLIs

Yes, this is one of the things I love about Linux.  If all else fails, the CLI will work, and if that fails, you've got really big problems anyway.  That said, I like both XArchiver and Squeeze, especially the "Extract Here" option under Thunar, which worked perfectly when I tried it recently.

Offline

#4 2009-08-14 12:09:38

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: file-roller issues...or why i prefer CLIs

extract () {
if [[ "$#" == "1" ]]; then
  if [[ -f $1 ]]; then
      case $1 in
          *.tar.bz2)   tar xvjf $1    ;;
          *.tar.gz)    tar xvzf $1    ;;
          *.bz2)       bunzip2 $1     ;;
          *.rar)       rar x $1       ;;
          *.gz)        gunzip $1      ;;
          *.tar)       tar xvf $1     ;;
          *.tbz2)      tar xvjf $1    ;;
          *.tgz)       tar xvzf $1    ;;
          *.zip)       unzip $1       ;;
          *.Z)         uncompress $1  ;;
          *.7z)        7z x $1        ;;
          *)           echo "don't know how to extract '$1'..." ;;
      esac
  else
      echo "'$1' is not a valid file!"
  fi
else
  echo "Must provide only one argument!"
fi
}

You can put that in your .bashrc and extract files with:

extract your-archive-file

The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#5 2009-08-14 14:49:32

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: file-roller issues...or why i prefer CLIs

moljac024: i think there shoud be 'unrar x' instead of 'rar x'

Offline

#6 2009-08-14 17:11:42

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: file-roller issues...or why i prefer CLIs

cinan wrote:

moljac024: i think there shoud be 'unrar x' instead of 'rar x'

No. The x is the option to extract and not the argument, that's $1 yikes

Offline

#7 2009-08-14 17:20:00

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: file-roller issues...or why i prefer CLIs

I have installed 'unrar' package which doesn't contain rar binary. Probably 'rar' in AUR provides rar binary.

Last edited by cinan (2009-08-14 17:20:09)

Offline

#8 2009-08-14 19:05:59

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,577

Re: file-roller issues...or why i prefer CLIs

[ranguvar@box ~]$ extract ADAM < /world/little_sister
don't know how to extract 'ADAM'...

sad

Last edited by Ranguvar (2009-08-14 19:07:13)

Offline

#9 2009-08-15 02:02:27

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: file-roller issues...or why i prefer CLIs

cinan wrote:

moljac024: i think there shoud be 'unrar x' instead of 'rar x'

Yea, you're right...Anyway I nicked that function off this forum some time ago, just re-posting it here, seems like a good idea


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

Board footer

Powered by FluxBB