Refactoring the open for linux

I use the MATE desktop and had problems because the plugin depends of the environment.