]> git.cworth.org Git - sup/commitdiff
Merge branch 'run-mailcap-fixes' into next
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 14 Aug 2009 20:13:33 +0000 (13:13 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Fri, 14 Aug 2009 20:13:33 +0000 (13:13 -0700)
lib/sup/message-chunks.rb

index a9f1a77c5b5e5e3a1bd6435abcb3bb5965f4de6c..705f15eb4b0ccd152811a65e8d1dbe4761962cf4 100644 (file)
@@ -131,9 +131,9 @@ 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
+      BufferManager.shell_out(cmd)
       $? == 0
     end