1:add permission notify.
2:chdir to appdir.