The tar file should be installed ( unpacked ) in the /mozilla/chrome directory. This should result in a directory /mozilla/chrome/kiosk. The file installed-chrome.txt that is found in the /kiosk directory has 3 lines that should be copied, added, to the /mozilla/chrome/installed-chrome.txt, instructions are in that file also. Make sure that the last line of the 3 lines ends with a carriage return or that line will not be added to the contents.rdf. Cd to the /mozilla directory where you will find a script - rebuild-databeses.sh or mozilla-rebuild-databases.pl - and at the command line run this script. The next time mozilla is started the skin will be added to the chrome register. NOTE on the mozilla 0.9.8 I just installed the rebuild-databases.sh is missing. You can obtain the rebuild-databases.sh script in my software directory if needed. If you get it make sure to install it in the /mozilla directory.
To install the kiosk.xpi
download and save kiosk.xpi
from the mozilla File menu select Open File and use the file browser to load your saved kiosk zippy. When it loads it will automagicaly start the mozilla component installer. In the install for kiosk.xpi I have installed some alerts to popup just so that you (me) can see that it's installing correctly.
To run mozilla with the kiosk interface type at a xterm prompt:
mozilla -chrome chrome://kiosk/content this will start mozilla
with the kiosk skin
mozilla -P default -chrome chrome://kiosk/content the -P default
tells the mozilla profile manager to start mozilla with the default user
settings, your users may be different.
mozilla -P default -chrome chrome://kiosk/content/kiosk3.xul this starts mozilla with the default user and with the kiosk3.xul interface, kiosk3.xul has a few added interface items.
Luca Casavola emailed me this about adding a line to the main mozilla pref.js file:- I found a way to start as chrome-kiosk as default : just adding the line in the pref.js (or all.js) file like:
You can cause all popup windows to display a blank, naked, window by subsituting blank-kiosk.xul for kiosk4.xul in the above example. The pref.js is located in users directory ~username/.mozilla/default/xxxxx.slt/ or all.js is located in the directory /mozilla/defaults/pref/ - these paths are for linux, feedback from other OS users would be appreciated!
There apears to be no xpi uninstall functionality built into mozilla. However a skin may be removed as follows, using the kiosk chrome as an example. The example also assumes that you have installed the kiosk.tar, if you installed the xpi then the lines below will have an jar! stuck in there. Got it? Ok here we go:
Remove the /mozilla/chrome/kiosk directory or the /mozilla/chrome/kiosk.jar
In an editor open the /mozilla/chrome/installed-chrome.txt
At the end of the installed-chrome.txt file there will be three lines:
cd to the /mozilla directory where you will find a script - rebuild-databeses.sh or mozilla-rebuild-databases.pl - and at the command line run this script. The next time mozilla is started the skin will be removed from the chrome register. NOTE on the mozilla 0.9.8 I just installed the rebuild-databases.sh is missing. You can obtain the rebuild-databases.sh script in my software directory if needed. If you get it make sure to install it in the /mozilla directory.
Please note that I am writing these instructions from a linux viewpoint since that is what I use. Feedback from other OS users would be appreciated.
This skin is designed to be used for browser kiosks that are run on diskless workstations from xdmcp and other kiosk setups. You may find the javascript a pityful mess, so do I. Do you know how to use nsIWebShell? If so please clue me in. My email is massey@stlouis-shopper.com My name is Jim Massey