Libosso API: osso_state_write failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Moblin UI Framework |
Won't Fix
|
Medium
|
Bob Spencer |
Bug Description
the osso_state_write return OSSO_ERROR:
-------
static char* s = "this is the state";
guint32 len = strlen(s)+1;
osso_context = osso_initialize
if (osso_context == NULL) {
return OSSO_ERROR;
}
state.
state.
result = osso_state_
if(result != OSSO_OK) {
if(result == OSSO_ERROR)
else if(result == OSSO_INVALID)
else
return -1;
}
-------
Changed in moblin-ui-framework: | |
assignee: | nobody → bob-spencer |
importance: | Undecided → Medium |
Changed in moblin-ui-framework: | |
status: | New → Triaged |
Changed in moblin-ui-framework: | |
milestone: | m9 → m10 |
This bug is same as the bug Todd reported #145951 ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- - control- panel install or by the controlpanel/ 0.1 and since this dir usually won't
He describe the root cause:
-------
The problem is that libosso expects the env var STATESAVEDIR
to exist and point to a valid directory where state data
for the resident application can be saved/restored. This var
is not set by the hildon-
controlpanel process. Without it libosso defaults to
/tmp/state/
exist without someone manually creating it, the error occurs.
The solution is to have the conrtolpanel process create this ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- --
variable and directory on startup.
-------
From Control Panel's perspective, I think it is OK to close the bug #145951.
But for API osso_state_write and osso_state_read, returning OSSO_ERROR is existed yet.
Keep tracking the APIs use in this bug.