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.