fixed syntax errors with switch case for open or xdg-open