1b2df87aa759672478bfe8d596cd513fa2fa4b8c
[src/app-framework-main.git] / doc / widgets.md
1
2 The widgets
3 ===========
4
5     version: 1
6     Date:    29 mai 2016
7     Author:  José Bollo
8
9 TABLE-OF-CONTENT-HERE
10
11 The widgets
12 -----------
13
14 The widgets are described by the technical recommendations
15 [widgets] and [widgets-digsig].
16
17 ### signature of the 
18
19 The application framework 
20
21 This is the original part of our work here
22
23 ### directory where are stored applications
24
25 Applications can be installed in few places: on the system itself or on an extension device.
26 For my phone, for example, it is the sd card.
27
28 This translates to:
29
30  - /usr/applications: for system wide applications
31  - /opt/applications: for removable applications
32
33 In the remaining of the document, these places are writen "APPDIR".
34
35
36 Organisation of directory of applications
37 =========================================
38
39 The main path for applivcations are: APPDIR/PKGID/VER.
40
41 Where:
42
43  - APPDIR is as defined above
44  - PKGID is a directory whose name is the package identifier
45  - VER is the version of the package MAJOR.MINOR
46
47 This organisation has the advantage to allow several versions to leave together.
48 This is needed for some good reasons (rolling back) and also for less good reasons (user habits).
49
50 Identity of installed files
51 ---------------------------
52
53 All the files are installed as the user "userapp" and group "userapp".
54 All files have rw(x) for user and r-(x) for group and others.
55
56 This allows any user to read the files.
57
58
59 Labelling the directories of applications
60 -----------------------------------------
61
62
63 Organisation of data
64 ====================
65
66 The data of a user are in its directory and are labelled using the labels of the application
67
68
69
70
71 [meta-intel]:       https://github.com/01org/meta-intel-iot-security                "A collection of layers providing security technologies"
72 [widgets]:          http://www.w3.org/TR/widgets                                    "Packaged Web Apps"
73 [widgets-digsig]:   http://www.w3.org/TR/widgets-digsig                             "XML Digital Signatures for Widgets"
74 [libxml2]:          http://xmlsoft.org/html/index.html                              "libxml2"
75 [openssl]:          https://www.openssl.org                                         "OpenSSL"
76 [xmlsec]:           https://www.aleksey.com/xmlsec                                  "XMLSec"
77 [json-c]:           https://github.com/json-c/json-c                                "JSON-c"
78 [d-bus]:            http://www.freedesktop.org/wiki/Software/dbus                   "D-Bus"
79 [libzip]:           http://www.nih.at/libzip                                        "libzip"
80 [cmake]:            https://cmake.org                                               "CMake"
81 [security-manager]: https://wiki.tizen.org/wiki/Security/Tizen_3.X_Security_Manager "Security-Manager"
82 [app-manifest]:     http://www.w3.org/TR/appmanifest                                "Web App Manifest"
83 [tizen-security]:   https://wiki.tizen.org/wiki/Security                            "Tizen security home page"
84 [tizen-secu-3]:     https://wiki.tizen.org/wiki/Security/Tizen_3.X_Overview         "Tizen 3 security overview"
85
86
87
88