bugranger - Bugs: bug #38545, Error when attempting to open .gz...

 
 

bug #38545: Error when attempting to open .gz files

Submitted by:  None
Submitted on:  Tue 19 Mar 2013 07:46:49 AM UTC  
 
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 19 Mar 2013 07:46:49 AM UTC, original submission:

When scope.sh is used as the preview script, previewing .gz files works fine, but attempting to open the file by typing <Enter> or l results in an error message from als, e.g.:

als: /usr/share/man/man1/ab.1.gz: list command not supported for gzip archives

It turns out that scope.sh has a mechanism for using acat if als fails and acat is able to display the contents of .gz files. rifle does not seem to have such a mechanism and tries only als.

I don't know what the proper solution is, but the problem can be fixed by installing rifle.conf in ~/.config/ranger and making the following change (shown as a unified diff):

--- /usr/local/share/doc/ranger/config/rifle.conf 2013-03-17 13:28:35.000000000 -0700
+++ rifle.conf 2013-03-19 00:15:13.341065944 -0700
@@ -161,8 +161,9 @@
# Archives
#-------------------------------------------
# This requires atool
-ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has als = als -- "$@" | "$PAGER"
+ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg, has als = als -- "$@" | "$PAGER"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has als = als -- "$@" | "$PAGER"
+ext gz, has acat = acat -- "$@" | "$PAGER"
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has aunpack = aunpack -- "$@"
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has aunpack = aunpack -- "$@"

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1