Prism/Config: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(→‎Example: spelling mistake - mail doesn't have a silent "e" in it.)
Line 18: Line 18:
<pre>
<pre>
[Parameters]
[Parameters]
id=google.maile@developer.mozilla.org
id=google.mail@developer.mozilla.org
uri=https://mail.google.com
uri=https://mail.google.com
icon=gmail
icon=gmail

Revision as of 14:27, 26 October 2007

Configuration

A webapp profile is a simple, INI-style text file that specifies some parameters about a webapp. The profile can be used to launch the webapp in WebRunner. The parameters also control some of the features of the WebRunner host window. Here is the list of parameters:

  • id - the unique name of this web application. Remember that other people can create different webapps using the same uri and this webapp is only your particular instance or mashup. So make sure the identifier is not only unique to the web application, but also to you. This identifier becomes the name of the profile folder where your webapp is installed: google.mail@your.name
  • uri - the uri/url of the web app: http://mail.google.com
  • icon - the icon you want to use for the WebRunner window when running this web app. The actual icon file should be stored in the webapp bundle.
  • status - turns the statusbar on or off for this web app: yes or no
  • location - turns the readonly location bar on or off for this web app: yes or no
  • sidebar - turns the sidebar on or off for this web app. The sidebar is initially collapsed and empty. You can use the webapp script to set a uri/url for the sidebar content and expand/collapse the sidebar: yes or no
  • navigation - turns the hotkey history navigation (ALT+LEFT, ALT+RIGHT and ALT+HOME) on or off for this web app: yes or no

Launch WebRunner with -webapp [bundle] to load the specified web profile and install the webapp to your WebRunner profile folder. Once the webapp is installed, it can be launched using -webapp [webapp-id] and WebRunner will skip the installation and run the webapp directly.

Any of the profile parameters can also be passed directly on the command line as well.

Example

Here is an example of a webapp.ini profile:

[Parameters]
id=google.mail@developer.mozilla.org
uri=https://mail.google.com
icon=gmail
status=yes
location=no
sidebar=no
navigation=no