Method: SensibleSwing::MainWindow#open_file_to_edit_it

Defined in:
lib/gui/sensible-cinema-base.rb

#open_file_to_edit_it(filename, options = {}) ⇒ Object

:start_minimized



549
550
551
552
553
554
555
556
557
558
559
560
# File 'lib/gui/sensible-cinema-base.rb', line 549

def open_file_to_edit_it filename, options = {} # :start_minimized
  if OS.windows?
    if options[:start_minimized]
      system_non_blocking "start /min notepad \"#{filename}\""
    else
      system_non_blocking "notepad \"#{filename}\""
    end
  else
    # ignore minimized :P
    system_non_blocking "open -a TextEdit \"#{filename}\""
  end
end