Create symbolic link to /usr/bin/WebProcess for app with dynamic box
authorYunchan Cho <yunchan.cho@samsung.com>
Mon, 26 Aug 2013 09:04:58 +0000 (18:04 +0900)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Thu, 26 Sep 2013 02:49:28 +0000 (11:49 +0900)
commitab020e17fe7bf4c0947c7d8594e7a7d53e99136b
tree35b3f8e9ad188d5f03255defc63923a8875053e5
parentf5746d4b36148833c4bbb0c8e71e51ab85e3096a
Create symbolic link to /usr/bin/WebProcess for app with dynamic box

- Tizen application is registered to app_info DB on installation time, hence
  this change needs to be done in wrt-installer

[Issue]    N/A
[Problem]  wrt-plugins (or external root daemon) cannot retrieve appid properly
           based on the pid of Box WebProcess.
[Cause]    app_manager API which gets appid from pid considers only
           registered executable path on app_info DB.
           (app_manager gets executable path from /proc/<pid>/cmdline
             matched to pid of WebProcess)
[Solution] WebProcess associated with the box needs to be registered to
           app_info DB on installation time.
           1. Register symbolic link (/usr/bin/WebProcess) per box
           2. Register the box's new appid to app_info DB on installation time

Change-Id: Ic6b59de89d6428b83f705da51c791806ac94e3ce
src/jobs/widget_install/task_manifest_file.cpp
src/jobs/widget_install/task_manifest_file.h