Some programs will fail to work correctly if this is done, like for
example: w3m --dump, to view HTML files.
def initial_state; :open end
def viewable?; @lines.nil? end
def view_default! path
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
Redwood::log "running: #{cmd.inspect}"
system cmd
$? == 0