Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm currently playing around with the Ubuntu webapps preview. For some cases it may be useful to store some configuration settings. Does anyone know if this is possible?

share|improve this question
    
what configuration you are talking about? –  Web-E Jul 23 '12 at 15:54
add comment

1 Answer

up vote 2 down vote accepted

You can use HTML Storage for configuration management. This is not Ubuntu specific. For example:

// When user decides to have the application print "FOO" on startup
localStorage["print_FOO"] = true;

// And then later, when the application launches in another session
if (localStorage["print_FOO"]) {
    alert("FOO");
}

You can read about local storage in more detail at Dive into HTML5.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.