gfx interface fix
tests
Added if-statement for Linux.