From mboxrd@z Thu Jan 1 00:00:00 1970 From: benoit.pierre@gmail.com (=?utf-8?q?Beno=C3=AEt=20PIERRE?=) Date: Wed, 12 Aug 2009 00:09:40 +0200 Subject: [sup-talk] [PATCH run-mailcap 1/2] Don't redirect stderr to /dev/null when calling run-mailcap. In-Reply-To: <1250022259-sup-8328@masanjin.net> References: <1250022259-sup-8328@masanjin.net> Message-ID: <1250028581-15826-1-git-send-email-benoit.pierre@gmail.com> 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 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.6.3.3