#!/bin/sh


# This script should be used to start Liferea
# to ensure a running DBUS session.

dist_bin=`dirname $0`
params="$@"

LD_LIBRARY_PATH=/usr/lib64/xulrunner-1.8.1b2${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH

if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
	eval `dbus-launch`
	export DBUS_SESSION_BUS_ADDRESS
fi

exec "$dist_bin/liferea-bin" $params
