use open or xdg-open for external viewer depending on the OS