pass full command line with open event

See #726