Code

Moved to trunk/branches/tags structure
[gosa.git] / contrib / scripts / start-gosa.sh
1 #!/bin/sh
2 # Start script for GOsa to be started via mozilla
4 # Check for presence of gosa profile
5 if [ ! -d $HOME/.mozilla/gosa ]; then
6         mozilla -CreateProfile gosa
7         config=`echo $HOME/.mozilla/gosa/*/`
9         cat << EOF > $config/prefs.js
10 # Mozilla User Preferences
12 /* Do not edit this file.
13  *
14  * If you make changes to this file while the browser is running,
15  * the changes will be overwritten when the browser exits.
16  *
17  * To make a manual change to preferences, you can visit the URL about:config
18  * For more information, see http://www.mozilla.org/unix/customizing.html#prefs
19  */
21 user_pref("browser.search.defaultengine", "engine:///usr/lib/mozilla/searchplugins/google.src");
22 user_pref("browser.startup.homepage", "http://vserver-02/gosa/index.php");
23 user_pref("browser.startup.homepage_override.mstone", "rv:1.6");
24 user_pref("browser.toolbars.showbutton.bookmarks", false);
25 user_pref("browser.toolbars.showbutton.home", false);
26 user_pref("browser.toolbars.showbutton.print", false);
27 user_pref("browser.toolbars.showbutton.search", false);
28 user_pref("intl.accept_languages", "de");
29 user_pref("intl.charsetmenu.browser.cache", "ISO-8859-1");
30 user_pref("plugin.soname.list", "libXt.so:libXext.so");
31 user_pref("signon.SignonFileName", "84795799.s");
32 user_pref("wallet.SchemaValueFileName", "84795819.w");
33 user_pref("security.warn_submit_insecure", false);
34 EOF
36         cat << EOF > $config/84795799.s
37 #2c
38 http://vserver-02
39 .
40 EOF
42         cat << EOF > $config/localstore.rdf
43 <?xml version="1.0"?>
44 <RDF:RDF xmlns:NC="http://home.netscape.com/NC-rdf#"
45          xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
46   <RDF:Description about="chrome://messenger/content/messenger.xul#sizeCol"
47                    hidden="true" />
48   <RDF:Description about="chrome://navigator/content/navigator.xul#cmd_viewnavbar"
49                    checked="false" />
50   <RDF:Description about="chrome://messenger/content/messenger.xul#threadOutliner"
51                    height="94" />
52   <RDF:Description about="chrome://messenger/content/mail3PaneWindowVertLayout.xul#sizeCol"
53                    hidden="true" />
54   <RDF:Description about="chrome://navigator/content/navigator.xul#sidebar-splitter"
55                    hidden="true" />
56   <RDF:Description about="chrome://messenger/content/mail3PaneWindowVertLayout.xul#totalCol"
57                    hidden="true" />
58   <RDF:Description about="chrome://navigator/content/navigator.xul#cmd_viewtaskbar"
59                    checked="false" />
60   <RDF:Description about="chrome://navigator/content/navigator.xul#status-bar"
61                    hidden="true" />
62   <RDF:Description about="chrome://navigator/content/navigator.xul#sidebar-panels"
63                    last-selected-panel="urn:sidebar:panel:bookmarks" />
64   <RDF:Description about="chrome://navigator/content/navigator.xul#nav-bar"
65                    hidden="true" />
66   <RDF:Description about="chrome://messenger/content/mail3PaneWindowVertLayout.xul#threadOutliner"
67                    height="94" />
68   <RDF:Description about="chrome://messenger/content/mail3PaneWindowVertLayout.xul">
69     <NC:persist resource="chrome://messenger/content/mail3PaneWindowVertLayout.xul#threadOutliner"/>
70     <NC:persist resource="chrome://messenger/content/mail3PaneWindowVertLayout.xul#statusCol"/>
71     <NC:persist resource="chrome://messenger/content/mail3PaneWindowVertLayout.xul#sizeCol"/>
72     <NC:persist resource="chrome://messenger/content/mail3PaneWindowVertLayout.xul#unreadCol"/>
73     <NC:persist resource="chrome://messenger/content/mail3PaneWindowVertLayout.xul#totalCol"/>
74     <NC:persist resource="chrome://messenger/content/mail3PaneWindowVertLayout.xul#OrderReceivedColumn"/>
75     <NC:persist resource="chrome://messenger/content/mail3PaneWindowVertLayout.xul#flaggedCol"/>
76   </RDF:Description>
77   <RDF:Description about="chrome://messenger/content/messenger.xul#totalCol"
78                    hidden="true" />
79   <RDF:Description about="chrome://messenger/content/messenger.xul">
80     <NC:persist resource="chrome://messenger/content/messenger.xul#statusCol"/>
81     <NC:persist resource="chrome://messenger/content/messenger.xul#sizeCol"/>
82     <NC:persist resource="chrome://messenger/content/messenger.xul#unreadCol"/>
83     <NC:persist resource="chrome://messenger/content/messenger.xul#totalCol"/>
84     <NC:persist resource="chrome://messenger/content/messenger.xul#OrderReceivedColumn"/>
85     <NC:persist resource="chrome://messenger/content/messenger.xul#flaggedCol"/>
86     <NC:persist resource="chrome://messenger/content/messenger.xul#messengerWindow"/>
87     <NC:persist resource="chrome://messenger/content/messenger.xul#threadOutliner"/>
88   </RDF:Description>
89   <RDF:Description about="chrome://messenger/content/messenger.xul#flaggedCol"
90                    hidden="true" />
91   <RDF:Description about="chrome://messenger/content/messenger.xul#messengerWindow"
92                    screenX="4"
93                    screenY="4"
94                    width="800"
95                    height="565" />
96   <RDF:Description about="chrome://messenger/content/mail3PaneWindowVertLayout.xul#unreadCol"
97                    hidden="true" />
98   <RDF:Description about="chrome://messenger/content/mail3PaneWindowVertLayout.xul#statusCol"
99                    hidden="true" />
100   <RDF:Description about="chrome://navigator/content/navigator.xul#PersonalToolbar"
101                    hidden="true" />
102   <RDF:Description about="chrome://messenger/content/messenger.xul#statusCol"
103                    hidden="true" />
104   <RDF:Description about="chrome://navigator/content/navigator.xul#sidebar-box"
105                    hidden="true" />
106   <RDF:Description about="chrome://messenger/content/messenger.xul#unreadCol"
107                    hidden="true" />
108   <RDF:Description about="chrome://messenger/content/mail3PaneWindowVertLayout.xul#OrderReceivedColumn"
109                    hidden="true" />
110   <RDF:Description about="chrome://messenger/content/mail3PaneWindowVertLayout.xul#flaggedCol"
111                    hidden="true" />
112   <RDF:Description about="chrome://navigator/content/navigator.xul#main-window"
113                    screenX="0"
114                    screenY="0"
115                    sizemode="normal"
116                    width="1010"
117                    height="787" />
118   <RDF:Description about="chrome://messenger/content/addressbook/addressbook.xul">
119     <NC:persist resource="chrome://messenger/content/addressbook/addressbook.xul#abResultsOutliner"/>
120   </RDF:Description>
121   <RDF:Description about="chrome://messenger/content/messenger.xul#OrderReceivedColumn"
122                    hidden="true" />
123   <RDF:Description about="chrome://navigator/content/navigator.xul">
124     <NC:persist resource="chrome://navigator/content/navigator.xul#sidebar-panels"/>
125     <NC:persist resource="chrome://navigator/content/navigator.xul#sidebar-box"/>
126     <NC:persist resource="chrome://navigator/content/navigator.xul#sidebar-splitter"/>
127     <NC:persist resource="chrome://navigator/content/navigator.xul#main-window"/>
128     <NC:persist resource="chrome://navigator/content/navigator.xul#nav-bar"/>
129     <NC:persist resource="chrome://navigator/content/navigator.xul#cmd_viewnavbar"/>
130     <NC:persist resource="chrome://navigator/content/navigator.xul#PersonalToolbar"/>
131     <NC:persist resource="chrome://navigator/content/navigator.xul#cmd_viewpersonaltoolbar"/>
132     <NC:persist resource="chrome://navigator/content/navigator.xul#status-bar"/>
133     <NC:persist resource="chrome://navigator/content/navigator.xul#cmd_viewtaskbar"/>
134   </RDF:Description>
135   <RDF:Description about="chrome://messenger/content/addressbook/addressbook.xul#abResultsOutliner"
136                    height="94" />
137   <RDF:Description about="chrome://navigator/content/navigator.xul#cmd_viewpersonaltoolbar"
138                    checked="false" />
139 </RDF:RDF>
140 EOF
141 fi
144 # Start mozilla with GOsa profile
145 mozilla -P gosa