Hi Cici,
Please find my answers inline.

"Li, Cici X" <[email protected]> writes:

> Hi, all
>
> For xwalk work mode on Tizen, we have two ways now:
>
> The old way is:
>
> xwalk --install
>
> The new way is xwalk run as service:
>
>          Use systemctl and xwalkctl --install
>
> When install xpk as “app” user with the above two ways on IVI, it will create 
> application.db under different direction:
>
> Old way:            /opt/home/app/.config/xwalk/applications.db
>
> New way:         /opt/home/app/.config/xwalk-service/applications.db
>
> Besides, during our testing, we found webapp fail to install under “root” 
> user for xwalk on Tizen(IVI), but Tizen wrt support this.
>

Crosswalk (service) need a display device (DISPLAY environment) when running,
but Tizen(IVI) system does not provide one for "root" user, so both ways will
fail when installing under "root" user.

> My open is:
>
> 1.       Will this two ways both support in future? During the period of both 
> support the two ways, how to distinguish the two xxx.db?
>
For tizen 3.0, service mode is recommended, hence it's compatible with Tizen 3.0
system naturally with less bugs.

The database are exactly the same except the path, so there's no other way to
distinguish them beside it.

> 2.       When we remove old ways and only support new ways, will we do the 
> old application.db data migration to new db?
>
If you need the old data, you can migration it by moving the database file
(/home/app/.config/xwalk/applications.db) and applications resources directory
(/home/app/.config/xwalk/applications) into the right place (maybe under
/home/app/.config/xwalk-service). Alternately, you can simply create a symbolic 
link:

,----
| $ cd $HOME/.config
| $ ln -s xwalk xwalk-service
`----
By this, both ways will use the same database file and work fine, and think it's
a work around for supporting the both stand along mode and service mode using
the same applications resources.

> 3.       Will xwalk on Tizen IVI support root user in future? If support, use 
> which db?
>
Crosswalk has supported all kinds of user accounts, current failure for "root"
account (it's also valid for "developer" user) is caused by the absent of system
environment (DISPLAY). The db file would be placed under
$HOME/.config/xwalk-service/.

Hope these can answer some of your questions. Thanks!

-- 
Best Regards,
He, Xinchao
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to