Skip to content
Snippets Groups Projects
Commit 2dcceee3 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[Fab] install gajim-remote only if dbus is present. see #2723

parent e3dd7358
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,13 @@ SUBDIRS = src data po
ACLOCAL_AMFLAGS = -I m4
bin_SCRIPTS = scripts/gajim
if BUILD_REMOTE_CONTROL
OPTIONAL_BIN = scripts/gajim-remote
else
OPTIONAL_BIN =
endif
bin_SCRIPTS = scripts/gajim $(OPTIONAL_BIN)
docfilesdir = $(docdir)
......@@ -19,13 +25,15 @@ EXTRA_DIST = \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
scripts/gajim.in
scripts/gajim.in \
scripts/gajim-remote.in
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update \
scripts/gajim
scripts/gajim \
scripts/gajim-remote
MAINTAINERCLEANFILES = \
configure \
......
......@@ -160,6 +160,7 @@ AC_CONFIG_FILES([
src/Makefile
src/common/Makefile
scripts/gajim
scripts/gajim-remote
po/Makefile.in
])
AC_OUTPUT
......
......@@ -28,6 +28,9 @@ if [ `id -u` -eq 0 ]; then
echo "You must not launch gajim-remote as root, it is INSECURE"
fi
cd PREFIX/share/gajim/src
export PYTHONPATH="$PYTHONPATH:PREFIXLIB/gajim"
exec PYTHON_EXEC -OO gajim-remote.py "$@"
datadir=@DATADIR@
PYTHON_EXEC=@PYTHON@
cd ${datadir}/gajim/src
export PYTHONPATH="$PYTHONPATH:@LIBDIR@/gajim"
exec ${PYTHON_EXEC} -OO gajim-remote.py "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment