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

Revision 23000, 1.3 KB checked in by ghudson, 16 years ago (diff)
In pidgin-wrapper: * Convert to config-package-dev. * Punt autoconf goo and use debhelper-style install. * Punt Debian version component; this is not portable software.
  • Property svn:executable set to *
Line 
1#!/bin/sh
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>$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.