Rename source files and improve readability
[src/app-framework-main.git] / docs / 2.1-widgets.md
index 084ee98..f41e2d9 100644 (file)
@@ -6,7 +6,7 @@ These tools are:
 - ***wgtpkg-info***: command line tool to display
   informations about a widget file.
 
-- ***wgtpkg-installer***: command line tool to
+- ***wgtpkg-install***: command line tool to
   install a widget file.
 
 - ***wgtpkg-pack***: command line tool to create
@@ -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.