gajim.in 1.09 KB
Newer Older
js's avatar
js committed
1
#!/bin/sh
roidelapluie's avatar
roidelapluie committed
2
## scripts/gajim.in
3
##
roidelapluie's avatar
roidelapluie committed
4 5 6 7
## Copyright (C) 2005 Yann Le Boulanger <asterix AT lagaule.org>
## Copyright (C) 2006 Dimitur Kirov <dkirov AT gmail.com>
##                    Stefan Bethge <stefan AT lanpartei.de>
## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org>
8
##
roidelapluie's avatar
roidelapluie committed
9
## This file is part of Gajim.
10
##
roidelapluie's avatar
roidelapluie committed
11
## Gajim is free software; you can redistribute it and/or modify
12
## it under the terms of the GNU General Public License as published
roidelapluie's avatar
roidelapluie committed
13
## by the Free Software Foundation; version 3 only.
14
##
roidelapluie's avatar
roidelapluie committed
15
## Gajim is distributed in the hope that it will be useful,
16
## but WITHOUT ANY WARRANTY; without even the implied warranty of
roidelapluie's avatar
roidelapluie committed
17
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
## GNU General Public License for more details.
roidelapluie's avatar
roidelapluie committed
19 20 21 22
##
## You should have received a copy of the GNU General Public License
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
##
23

24
APP=`basename $0`
js's avatar
js committed
25
if test $(id -u) -eq 0; then
26
	echo "You must not launch $APP as root, it is INSECURE"
js's avatar
js committed
27
	exit 1
28 29
fi

30 31
[ "$APP" = "gajim-history-manager" ] && APP="history_manager"

32
cd "@GAJIM_SRCDIR@"
33
exec "@PYTHON@" -OO $APP.py "$@"