Page created:
Jun 16, 2009 (? ago)
Last modified ? ago
To main page | Opera Unite HowTo's

Config.xml


config.xml is the file that describes your application to Opera Unite.

It includes information about application (title, description), you as the owner, what services does this application rely on (such as fileio or webserver).

Minimal example for web app

<widget>
  <widgetname>Test</widgetname>
  <feature name="http://xmlns.opera.com/webserver">
    <param name="type" value="service"/>
    <param name="servicepath" value="test"/>
  </feature>
</widget>

Bigger example

This one adds description and author information
<widget>
  <widgetname>Test</widgetname>
  <description>Just a test</description>
  <author>
    <name>Testov Test</name>
    <organisation>Testing Inc.</organisation>
  </author>
  <feature name="http://xmlns.opera.com/webserver">
    <param name="type" value="service"/>
    <param name="servicepath" value="test"/>
  </feature>
</widget>

Installing it

Drag-and-drop config.xml file into Opera

Enabling "fileio" library

Change config.xml, add this:
(right above <feature name="http://xmlns.opera.com/webserver">):
<feature name="http://xmlns.opera.com/fileio">
</feature>
If you need user to share some files with your App - add this instead:
<feature name="http://xmlns.opera.com/fileio">
   <param name="folderhint" value="home" />
</feature>
Official fileio docs have more about this.

Basic fileio-enabled example

<widget>
  <widgetname>Test</widgetname>
  <feature name="http://xmlns.opera.com/fileio">
  </feature>
  <feature name="http://xmlns.opera.com/webserver">
    <param name="type" value="service"/>
    <param name="servicepath" value="crud"/>
  </feature>
</widget>

Enabling network access

This is required for AJAX.
<widget network="public private">

Icons

<icon width="64" height="64">public_html/favicon.64x64.png</icon>
<icon width="48" height="48">public_html/favicon.48x48.png</icon>
<icon width="32" height="32">public_html/favicon.32x32.png</icon>
<icon width="16" height="16">public_html/favicon.16x16.png</icon>
Insert it before <feature ..


Slava V. [about me]


main page



Last updated


  1. Markuper (HTML templates)
  2. .ua
  3. Opera Unite HowTo's
  4. .us (files)
  5. Distribute Your Application
  6. 24/7 sites (permanent applications - idea) [stub]
  7. Issues
  8. HTTP Connections (AJAX/REST)
  9. Cookies
  10. file_wrap.js - File Wrapper
  11. Basic HowTo: Simple app (tutorial)
  12. Static images, client-side scripts
  13. Application Examples
  14. How to Debug Opera Unite apps
  15. Persistence & databases
  16. Opera Unite benchmark
  17. From PHP to Opera Unite
  18. Uniteness (Framework)
  19. Config.xml
  20. Key-value storage
  21. Widget Object
  22. Notifications (Growl'esque)
  23. Reset (debug)
  24. Cron example
  25. What I meant by CNAMEs
  26. Wish List
  27. Device Unavailable
  28. StopLorem (Opera Unite blogging)
  29. uniteness-0.11
  30. GET/POST data
  31. CRUD And Static (example)
  32. Opera object
  33. URLs
  34. Headers & Redirects
  35. Error Console
  36. JSON State (storing data)
  37. Security
  38. /storage/ (in fileio)
  39. Yusef library
  40. unite_info (a-la php_info)
  41. Javascript Imports
  42. onunload / _close
  43. fileio: Sandboxed Filesystem
  44. Request Hierarchy (like php_info)
  45. Intro: Web Apps with Opera Unite