#!/bin/bash
pythonexec='/usr/bin/python3'
pkgdatadir='/usr/share/varia'
aria2cexec=$pkgdatadir/../../bin/aria2c
if !(test -f $aria2cexec;)
then
	echo "Probably not a Flatpak environment. Trying to find the system's aria2c..."
	aria2cexec=$(which aria2c)
	if !(test -f $aria2cexec;)
	then
		echo "aria2c not found. Exiting."
		exit
	fi
fi
$pythonexec $pkgdatadir/../../bin/varia-py.py "$aria2cexec"
