add spawn_command_sync in utils.c
res:dock:: rename do_hide to _do_hide for warn.

do_xxx is parsed for event binding automatically, however, the hide is not a dom event.

	修改:         resources/dock/js/preview.coffee
dock:: fix some appid problem and dock region problem.

1. java program appid problem.

the appid must be getton from cmdline, otherwise, if a program is run from
terminator, the appid is still wrong.

2. dock region is wrong.

may be not update_dock_region at startup.