X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2F2.1-widgets.md;h=f799133c3586eccbeadf30f6a1312d6f3cb89496;hb=7553044c59814c33763bb4b1c34664dceed68735;hp=084ee988c90d35f2f129ffe067794c1c5c27c5e7;hpb=8c08f5f678660d27420d548cf8b3100bb24aebd9;p=src%2Fapp-framework-main.git diff --git a/docs/2.1-widgets.md b/docs/2.1-widgets.md index 084ee98..f799133 100644 --- a/docs/2.1-widgets.md +++ b/docs/2.1-widgets.md @@ -76,6 +76,16 @@ wgtpkg-pack DIRECTORY -o file.wgt ## Writing a widget +### App directory organization + +There are few directories that are by default used in the binder. At the root +directory of the widget folder, here are the directories that could be used: + +- *lib* : default directory where lies external libraries needed for + the binding. Binding could be stored here too or in another directory of your + choice. +- *htdocs* : root HTTP directory if binding has web UI. + ### The steps for writing a widget 1. make your application @@ -97,10 +107,9 @@ On a phone application are typically installed on the sd card. This translates to: -- /usr/applications: system wide applications -- /opt/applications: removable applications +- /var/local/lib/afm/applications -From here those paths are referenced as: "APPDIR". +From here this path is referenced as: "APPDIR". The main path for applications is: APPDIR/PKGID/VER.