[brubru] Factorize lauchers. Fixes #4819
This commit is contained in:
parent
d6c2092977
commit
35a0262d6d
|
@ -28,9 +28,7 @@ EXTRA_DIST = \
|
||||||
intltool-update.in \
|
intltool-update.in \
|
||||||
gajim.nsi \
|
gajim.nsi \
|
||||||
setup_win32.py \
|
setup_win32.py \
|
||||||
scripts/gajim.in \
|
scripts/gajim.in
|
||||||
scripts/gajim-remote.in \
|
|
||||||
scripts/gajim-history-manager.in
|
|
||||||
|
|
||||||
DISTCLEANFILES = \
|
DISTCLEANFILES = \
|
||||||
intltool-extract \
|
intltool-extract \
|
||||||
|
|
|
@ -176,8 +176,8 @@ AC_CONFIG_FILES([
|
||||||
src/osx/growl/Makefile
|
src/osx/growl/Makefile
|
||||||
src/osx/syncmenu/Makefile
|
src/osx/syncmenu/Makefile
|
||||||
scripts/gajim
|
scripts/gajim
|
||||||
scripts/gajim-remote
|
scripts/gajim-remote:scripts/gajim.in
|
||||||
scripts/gajim-history-manager
|
scripts/gajim-history-manager:scripts/gajim.in
|
||||||
po/Makefile.in
|
po/Makefile.in
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
## scripts/gajim-history-manager.in
|
|
||||||
##
|
|
||||||
## Copyright (C) 2009 Yann Le Boulanger <asterix AT lagaule.org>
|
|
||||||
##
|
|
||||||
## This file is part of Gajim.
|
|
||||||
##
|
|
||||||
## Gajim is free software; you can redistribute it and/or modify
|
|
||||||
## it under the terms of the GNU General Public License as published
|
|
||||||
## by the Free Software Foundation; version 3 only.
|
|
||||||
##
|
|
||||||
## Gajim is distributed in the hope that it will be useful,
|
|
||||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
## GNU General Public License for more details.
|
|
||||||
##
|
|
||||||
## You should have received a copy of the GNU General Public License
|
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
##
|
|
||||||
|
|
||||||
if test $(id -u) -eq 0; then
|
|
||||||
echo "You must not launch Gajim as root, it is INSECURE"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
export datadir=@DATADIR@/gajim
|
|
||||||
PYTHON_EXEC=@PYTHON@
|
|
||||||
|
|
||||||
cd ${datadir}/src
|
|
||||||
export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
|
|
||||||
exec ${PYTHON_EXEC} -OO history_manager.py $@
|
|
|
@ -1,32 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
## scripts/gajim-remote.in
|
|
||||||
##
|
|
||||||
## Copyright (C) 2006 Yann Leboulanger <asterix AT lagaule.org>
|
|
||||||
## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org>
|
|
||||||
##
|
|
||||||
## This file is part of Gajim.
|
|
||||||
##
|
|
||||||
## Gajim is free software; you can redistribute it and/or modify
|
|
||||||
## it under the terms of the GNU General Public License as published
|
|
||||||
## by the Free Software Foundation; version 3 only.
|
|
||||||
##
|
|
||||||
## Gajim is distributed in the hope that it will be useful,
|
|
||||||
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
## GNU General Public License for more details.
|
|
||||||
##
|
|
||||||
## You should have received a copy of the GNU General Public License
|
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
##
|
|
||||||
|
|
||||||
if test $(id -u) -eq 0; then
|
|
||||||
echo "You must not launch gajim-remote as root, it is INSECURE"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
export datadir=@DATADIR@/gajim
|
|
||||||
PYTHON_EXEC=@PYTHON@
|
|
||||||
|
|
||||||
cd ${datadir}/src
|
|
||||||
export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
|
|
||||||
exec ${PYTHON_EXEC} -OO gajim-remote.py "$@"
|
|
|
@ -21,14 +21,17 @@
|
||||||
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
|
||||||
##
|
##
|
||||||
|
|
||||||
|
APP=`basename $0`
|
||||||
if test $(id -u) -eq 0; then
|
if test $(id -u) -eq 0; then
|
||||||
echo "You must not launch Gajim as root, it is INSECURE"
|
echo "You must not launch $APP as root, it is INSECURE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ "$APP" = "gajim-history-manager" ] && APP="history_manager"
|
||||||
|
|
||||||
export datadir=@DATADIR@/gajim
|
export datadir=@DATADIR@/gajim
|
||||||
PYTHON_EXEC=@PYTHON@
|
PYTHON_EXEC=@PYTHON@
|
||||||
|
|
||||||
cd ${datadir}/src
|
cd ${datadir}/src
|
||||||
export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
|
export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
|
||||||
exec ${PYTHON_EXEC} -OO gajim.py $@
|
exec ${PYTHON_EXEC} -OO $APP.py $@
|
||||||
|
|
Loading…
Reference in New Issue