<html> <head> <link rel="stylesheet" type="text/css" href="doc.css"> <meta charset="UTF-8"> </head> <body> <a name="The.widgets"></a> <h1>The widgets</h1> <pre><code>version: 1 Date: 30 mai 2016 Author: José Bollo </code></pre> <p><ul> <li><a href="#The.widgets">The widgets</a> <ul> <li><a href="#The.widgets">The widgets</a> <ul> <li><a href="#signature">signature</a></li> <li><a href="#directory.where.are.stored.applications">directory where are stored applications</a> </li> </ul> </li> </ul> </li> <li><a href="#Organization.of.directory.of.applications">Organization of directory of applications</a> <ul> <li><a href="#Identity.of.installed.files">Identity of installed files</a></li> <li><a href="#labeling.the.directories.of.applications">labeling the directories of applications</a></li> </ul> </li> <li><a href="#organization.of.data">organization of data</a></li> </ul></p> <a name="The.widgets"></a> <h2>The widgets</h2> <p>The widgets are described by the technical recommendations <a href="http://www.w3.org/TR/widgets" title="Packaged Web Apps">widgets</a> and <a href="http://www.w3.org/TR/widgets-digsig" title="XML Digital Signatures for Widgets">widgets-digsig</a>.</p> <a name="signature"></a> <h3>signature</h3> <p>The application framework</p> <p>This is the original part of our work here</p> <a name="directory.where.are.stored.applications"></a> <h3>directory where are stored applications</h3> <p>Applications can be installed in different places: the system itself, extension device. On a phone application are typically installed on the sd card.</p> <p>This translates to:</p> <ul> <li>/usr/applications: system wide applications</li> <li>/opt/applications: removable applications</li> </ul> <p>From here those paths are referenced as: “APPDIR”.</p> <a name="Organization.of.directory.of.applications"></a> <h1>Organization of directory of applications</h1> <p>The main path for applications is: APPDIR/PKGID/VER.</p> <p>Where:</p> <ul> <li>APPDIR is as defined above</li> <li>PKGID is a directory whose name is the package identifier</li> <li>VER is the version of the package MAJOR.MINOR</li> </ul> <p>This organization has the advantage to allow several versions to leave together. This is needed for some good reasons (rolling back) and also for less good reasons (user habits).</p> <a name="Identity.of.installed.files"></a> <h2>Identity of installed files</h2> <p>All files are installed as user “userapp” and group “userapp”. All files have rw(x) for user and r-(x) for group and others.</p> <p>This allows every user to read every file.</p> <a name="labeling.the.directories.of.applications"></a> <h2>labeling the directories of applications</h2> <a name="organization.of.data"></a> <h1>organization of data</h1> <p>The data of a user are in its directory and are labelled using the labels of the application</p> </body> </html>