fix error dialog. Fixes #6906
[gajim.git] / scripts / gajim.in
blobe163a9bda36b2859f3b6ed7a72815fa915dadcee
1 #!/bin/sh
2 ## scripts/gajim.in
3 ##
4 ## Copyright (C) 2005 Yann Le Boulanger <asterix AT lagaule.org>
5 ## Copyright (C) 2006 Dimitur Kirov <dkirov AT gmail.com>
6 ## Stefan Bethge <stefan AT lanpartei.de>
7 ## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org>
8 ##
9 ## This file is part of Gajim.
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
13 ## by the Free Software Foundation; version 3 only.
15 ## Gajim is distributed in the hope that it will be useful,
16 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ## GNU General Public License for more details.
20 ## You should have received a copy of the GNU General Public License
21 ## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
24 APP=`basename $0`
25 if test $(id -u) -eq 0; then
26 echo "You must not launch $APP as root, it is INSECURE"
27 exit 1
30 [ "$APP" = "gajim-history-manager" ] && APP="history_manager"
32 cd "@GAJIM_SRCDIR@"
33 exec "@PYTHON@" -OO $APP.py "$@"