Prism/Config

From MozillaWiki
Jump to: navigation, search

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 Prism. The parameters also control some of the features of the Prism 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 Prism 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
  • scrollbars - turns the scrollbars on or off. true or false.

Launch Prism with -webapp [bundle] to load the specified web profile and install the webapp to your Prism profile folder. Once the webapp is installed, it can be launched using -webapp [webapp-id] and Prism 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