Changes

Jump to: navigation, search

How to do a Hello World application using XULRunner

1,556 bytes removed, 18:29, 13 November 2006
Setting up the application.ini file
== Setting up the application.ini file ==
 
XULRunner first looks at the application.ini file located at the root directory. This file contains metadata which tells XULRunner how to run the application properly. This fype typically contains [Heading] and Key=Values. Also, Lines which begin with characters "#" or ";" are treated as comments.
 
The application.ini file contains two sections. They are the following with surrounding square brackets:
 
'''[App]''' Section - This section of the file contains data about the application
<table style="width: 100%;" class="standard-table" cellborder=1 border=1 cellpadding=2 cellspacing=0>
<tr>
<td width="10%"> '''Key'''</td>
<td> '''Value'''</td>
</tr>
<tr>
<td>Name</td>
<td>Name of the application.</td>
</tr>
<tr>
<td>Version</td>
<td>Version of the application.</td>
</tr>
<tr>
<td>BuildID</td>
<td>This is the build ID which is unique. Typically this field is a date</td>
</tr>
<tr>
<td>ID</td>
<td>Unique ID of the application.</td>
</tr>
<tr>
<td>Vendor</td>
<td>This is the vendor of the application which is an optional field.</td>
</tr>
</table>
 
 
'''[Gecko]''' Section - This section contains information about what version XULRunner is needed for the application.
<table style="width: 100%;" class="standard-table" cellborder=1 border=1 cellpadding=2 cellspacing=0>
<tr>
<td width="10%">'''Key'''</td>
<td>'''Value'''</td>
</tr>
<tr>
<td>MinVersion</td>
<td>The minimum XULRunner version this application supports.</td>
</tr>
<tr>
<td>MaxVersion</td>
<td>The maximum XULRunner version this application can run on.</td>
</tr>
</table>
 
The following is a sample '''application.ini''' file.
1
edit

Navigation menu