[maemo-commits] [maemo-commits] r13316 - projects/haf/trunk/hildon-desktop

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Aug 21 14:40:34 EEST 2007
Author: karoliina
Date: 2007-08-21 14:40:32 +0300 (Tue, 21 Aug 2007)
New Revision: 13316

Modified:
   projects/haf/trunk/hildon-desktop/desktop-safe-mode.txt
Log:
Updated spec



Modified: projects/haf/trunk/hildon-desktop/desktop-safe-mode.txt
===================================================================
--- projects/haf/trunk/hildon-desktop/desktop-safe-mode.txt	2007-08-21 11:01:21 UTC (rev 13315)
+++ projects/haf/trunk/hildon-desktop/desktop-safe-mode.txt	2007-08-21 11:40:32 UTC (rev 13316)
@@ -32,7 +32,11 @@
 the process itself has no means of removing the stamp file.
 
 This alternative works most of the cases but it can fail in a case the desktop is killed in some other
-situation than in reboot (when the /tmp/ is cleaned).
+situation than in reboot (when the /tmp/ is cleaned). One example is when battery charger is plugged in
+and the device is then switched off. The device in that case doesn't turn off and hence doesn't clean up
+the /tmp. When the device is started again from this battery charging mode, it will not do a reboot, but
+just restart the Hildon Desktop while keeping /tmp and thus the stamp file intact. This causes a situation
+that only factory plugins are shown until next real reboot.
 
 2.2 Blacklist -file based safe mode
 
@@ -58,3 +62,19 @@
 drag even the dbus along) would be fast to start and could be made pretty efficient. However, two processes
 has larger RAM footprint anyway than single process.
 
+3. Chosen alternative
+
+The blacklist altenative was chosen because it consumes the least resources and is still quite simple in design.
+
+3.1 Architecture of black list
+
+hildon desktop                        black list         plugin container      stamp-file
+ON STARTUP
+     ---------if not exists, create -------->
+     ---------if crash stamp not existing, create --------------------------------->
+FOR EACH PLUGIN
+     ------------- check if on black list -->
+     IF NOT ON BLACK LIST
+        --------------------------------- invoke & add plugin ------>
+        ---------- if ok, remove from list -->
+


More information about the maemo-commits mailing list