From 09a8cdae3778c8605956046fa129571bf83f4453 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20PIERRE?= Date: Wed, 12 Aug 2009 00:09:40 +0200 Subject: [PATCH] don't redirect stderr to /dev/null when calling run-mailcap 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/message-chunks.rb b/lib/sup/message-chunks.rb index 0d742d9..4c947e1 100644 --- a/lib/sup/message-chunks.rb +++ b/lib/sup/message-chunks.rb @@ -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 -- 2.43.0