Switch snippet plugin
has('gui_running') seems to work better