| | 1 | #!/bin/sh |
| | 2 | ## gajim |
| | 3 | ## |
| | 4 | ## Contributors for this file: |
| | 5 | ## - Yann Le Boulanger <asterix@lagaule.org> |
| | 6 | ## - Nikos Kouremenos <kourem@gmail.com> |
| | 7 | ## - Dimitur Kirov <dkirov@gmail.com> |
| | 8 | ## |
| | 9 | ## Copyright (C) 2003-2004 Yann Le Boulanger <asterix@lagaule.org> |
| | 10 | ## Vincent Hanquez <tab@snarc.org> |
| | 11 | ## Copyright (C) 2005 Yann Le Boulanger <asterix@lagaule.org> |
| | 12 | ## Vincent Hanquez <tab@snarc.org> |
| | 13 | ## Nikos Kouremenos <nkour@jabber.org> |
| | 14 | ## Dimitur Kirov <dkirov@gmail.com> |
| | 15 | ## Travis Shirk <travis@pobox.com> |
| | 16 | ## Norman Rasmussen <norman@rasmussen.co.za> |
| | 17 | ## |
| | 18 | ## This program is free software; you can redistribute it and/or modify |
| | 19 | ## it under the terms of the GNU General Public License as published |
| | 20 | ## by the Free Software Foundation; version 2 only. |
| | 21 | ## |
| | 22 | ## This program is distributed in the hope that it will be useful, |
| | 23 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | 24 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| | 25 | ## GNU General Public License for more details. |
| | 26 | |
| | 27 | if [ `id -u` -eq 0 ]; then |
| | 28 | echo "You must not launch gajim-remote as root, it is INSECURE" |
| | 29 | fi |
| | 30 | |
| | 31 | datadir=@DATADIR@ |
| | 32 | PYTHON_EXEC=@PYTHON@ |
| | 33 | |
| | 34 | cd ${datadir}/gajim/src |
| | 35 | export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim" |
| | 36 | exec ${PYTHON_EXEC} -OO gajim-remote.py "$@" |