init desktop-app & template