move OS detection to launch_editor_for_input()

see #822