#!/bin/bash
# wrapper script to allow passwordless manager connections from users of the boinc group

if [ -z $BOINCDIR ]; then
	BOINCDIR=`grep -o -- '--dir [^ ]\+' /usr/lib/systemd/system/boinc-client.service | tr '"' ' ' | sed 's|--dir ||'`;
fi

cd $BOINCDIR
boinc_gui >& /dev/null
