]> git.cworth.org Git - sup/commitdiff
don't redirect stderr to /dev/null when calling run-mailcap
authorBenoît PIERRE <benoit.pierre@gmail.com>
Tue, 11 Aug 2009 22:09:40 +0000 (00:09 +0200)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 14 Aug 2009 20:12:09 +0000 (13:12 -0700)
Some programs will fail to work correctly if this is done, like for
example: w3m --dump, to view HTML files.

lib/sup/message-chunks.rb

index 0d742d99e746a9ce96a4c11eddcd57506fcae22f..4c947e15e5e83a51bc18ad404ed1d114beb2e2ae 100644 (file)
@@ -131,7 +131,7 @@ EOS
     def initial_state; :open end
     def viewable?; @lines.nil? end
     def view_default! path
-      cmd = "/usr/bin/run-mailcap --action=view '#{@content_type}:#{path}' 2>/dev/null"
+      cmd = "/usr/bin/run-mailcap --action=view '#{@content_type}:#{path}'"
       Redwood::log "running: #{cmd.inspect}"
       system cmd
       $? == 0