aboutsummaryrefslogtreecommitdiffstats
path: root/doc/widgets.html
blob: 23bf891b59cde761edfabd2b23ea3c0d411b19e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<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: &ldquo;APPDIR&rdquo;.</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 &ldquo;userapp&rdquo; and group &ldquo;userapp&rdquo;.
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>