source: trunk/debathena/debathena/pidgin-wrapper/pidgin.debathena @ 24180

Revision 24180, 1.3 KB checked in by broder, 14 years ago (diff)
In pidgin-wrapper: * Fix a typo in 10.0.4.
  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3# Wrapper script to auto-create an MIT Chat account the first time
4# pidgin is run.
5
6# If .purple directory does not exist, create it and make it private.
7if [ ! -d "$HOME/.purple" ]; then
8  mkdir "$HOME/.purple" || exit 1
9  fs sa "$HOME/.purple" system:anyuser none > /dev/null 2>&1
10fi
11
12# Set up an MIT Chat account if no account settings exist.
13if [ ! -f "$HOME/.purple/accounts.xml" ]; then
14  cat > $HOME/.purple/accounts.xml << EOF
15<?xml version='1.0' encoding='UTF-8' ?>
16
17<accounts version='1.0'>
18 <account>
19  <protocol>prpl-jabber</protocol>
20  <name>${ATHENA_USER:-$USER}@mit.edu/Pidgin</name>
21  <settings>
22   <setting name='athena' type='bool'>1</setting>
23   <setting name='require_tls' type='bool'>1</setting>
24  </settings>
25  <settings ui='gtk-gaim'>
26   <setting name='auto-login' type='bool'>1</setting>
27  </settings>
28 </account>
29</accounts>
30EOF
31fi
32
33# Set the buddy list to visible if no prefs file exists.  (Ordinarily
34# handled by the startup wizard, which we are bypassing.)
35if [ ! -f "$HOME/.purple/prefs.xml" ]; then
36  cat > $HOME/.purple/prefs.xml << "EOF"
37<?xml version='1.0' encoding='UTF-8' ?>
38
39<pref version='1.0' name='/'>
40        <pref name='pidgin'>
41                <pref name='blist'>
42                        <pref name='list_visible' type='bool' value='1' />
43                </pref>
44        </pref>
45</pref>
46EOF
47fi
48
49exec /usr/bin/pidgin.debathena-orig "$@"
Note: See TracBrowser for help on using the repository browser.