~jtaylor/ubuntu/oneiric/gajim/multiple-CVE

« back to all changes in this revision

Viewing changes to scripts/gajim.in

  • Committer: Bazaar Package Importer
  • Author(s): Nafallo Bjälevik
  • Date: 2009-06-12 13:49:19 UTC
  • mto: (1.5.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 40.
  • Revision ID: james.westby@ubuntu.com-20090612134919-q5i1vj7b4pubx281
Tags: upstream-0.12.2
Import upstream version 0.12.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
22
22
##
23
23
 
 
24
APP=`basename $0`
24
25
if test $(id -u) -eq 0; then
25
 
        echo "You must not launch Gajim as root, it is INSECURE"
 
26
        echo "You must not launch $APP as root, it is INSECURE"
26
27
        exit 1
27
28
fi
28
29
 
29
 
datadir=@DATADIR@
 
30
[ "$APP" = "gajim-history-manager" ] && APP="history_manager"
 
31
 
 
32
export datadir=@DATADIR@/gajim
30
33
PYTHON_EXEC=@PYTHON@
31
34
 
32
 
cd ${datadir}/gajim/src
 
35
cd ${datadir}/src
33
36
export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
34
 
exec ${PYTHON_EXEC} -OO gajim.py $@
 
37
exec ${PYTHON_EXEC} -OO $APP.py "$@"