launch device detecting on linux and mac