-gname option depends on the graphics are enabled