|
Revision 10247, 1.0 kB
(checked in by roidelapluie, 4 months ago)
|
- Big headers review
- Remove some licencing problems
- To do: same for images
- See #4200
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | ## scripts/gajim-remote.in |
|---|
| 3 | ## |
|---|
| 4 | ## Copyright (C) 2006 Yann Leboulanger <asterix AT lagaule.org> |
|---|
| 5 | ## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org> |
|---|
| 6 | ## |
|---|
| 7 | ## This file is part of Gajim. |
|---|
| 8 | ## |
|---|
| 9 | ## Gajim is free software; you can redistribute it and/or modify |
|---|
| 10 | ## it under the terms of the GNU General Public License as published |
|---|
| 11 | ## by the Free Software Foundation; version 3 only. |
|---|
| 12 | ## |
|---|
| 13 | ## Gajim is distributed in the hope that it will be useful, |
|---|
| 14 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | ## GNU General Public License for more details. |
|---|
| 17 | ## |
|---|
| 18 | ## You should have received a copy of the GNU General Public License |
|---|
| 19 | ## along with Gajim. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 20 | ## |
|---|
| 21 | |
|---|
| 22 | if test $(id -u) -eq 0; then |
|---|
| 23 | echo "You must not launch gajim-remote as root, it is INSECURE" |
|---|
| 24 | exit 1 |
|---|
| 25 | fi |
|---|
| 26 | |
|---|
| 27 | datadir=@DATADIR@ |
|---|
| 28 | PYTHON_EXEC=@PYTHON@ |
|---|
| 29 | |
|---|
| 30 | cd ${datadir}/gajim/src |
|---|
| 31 | export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim" |
|---|
| 32 | exec ${PYTHON_EXEC} -OO gajim-remote.py "$@" |
|---|