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

 
 

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

Submitter:  None
Submitted:  Tue 19 Mar 2013 07:46:49 AM UTC
   
 
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.12.
Corresponding source code