Handle opening files with double-click