Rework Application a little. Properly focus the editor when opening a file from command line