Revision 24213,
1.2 KB
checked in by rbasch, 15 years ago
(diff) |
In debathena-kiosk:
* Add a launcher GUI for the new gdm login window. (Trac: #431)
* Disable the tabs bar for Firefox 3.5.
* Move non-executables to /usr/share/debathena-kiosk.
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # This is the xinit script for the kiosk user. |
---|
4 | |
---|
5 | datadir=/usr/share/debathena-kiosk |
---|
6 | |
---|
7 | # The rkiosk extension's unique ID, and the location of its xpi file. |
---|
8 | rkiosk_id="{4D498D0A-05AD-4fdb-97B5-8A0AABC1FC5B}" |
---|
9 | rkiosk_xpi=$datadir/r-kiosk.xpi |
---|
10 | |
---|
11 | # File with preferences to set in the firefox profile. |
---|
12 | prefs="$datadir/prefs.js" |
---|
13 | |
---|
14 | # User chrome (UI customizations) file. |
---|
15 | chrome="$datadir/userChrome.css" |
---|
16 | |
---|
17 | cd || exit 1 |
---|
18 | |
---|
19 | exec > xinit.log 2>&1 |
---|
20 | |
---|
21 | XAUTHORITY=$HOME/.Xauthority |
---|
22 | export XAUTHORITY |
---|
23 | |
---|
24 | # Run a window manager so that firefox fullscreen mode works. |
---|
25 | metacity --sm-disable & |
---|
26 | |
---|
27 | # Create a new firefox profile. |
---|
28 | rm -rf .mozilla |
---|
29 | firefox -CreateProfile default > /dev/null || exit 1 |
---|
30 | profdir=$(find .mozilla/firefox -type d -name \*.default) |
---|
31 | |
---|
32 | # Add the rkiosk extension. |
---|
33 | mkdir -p "$profdir/extensions/$rkiosk_id" |
---|
34 | (cd "$profdir/extensions/$rkiosk_id" && unzip "$rkiosk_xpi") || exit 1 |
---|
35 | cat <<EOF >> "$profdir/extensions.ini" |
---|
36 | [ExtensionDirs] |
---|
37 | Extension0=$profdir/extensions/$rkiosk_id |
---|
38 | EOF |
---|
39 | |
---|
40 | # Apply our preference settings and UI customizations. |
---|
41 | cat "$prefs" >> "$profdir/prefs.js" || exit 1 |
---|
42 | cp "$chrome" "$profdir/chrome/userChrome.css" || exit 1 |
---|
43 | |
---|
44 | # Launch firefox. |
---|
45 | firefox |
---|
46 | |
---|
47 | # Clean up. |
---|
48 | rm -rf .mozilla |
---|
Note: See
TracBrowser
for help on using the repository browser.