#!/bin/bash

if [[ -z "$XAUTHORITY" ]]; then
	export XAUTHORITY="$HOME/.Xauthority";
fi;

exec /usr/bin/sudo -H -u root -- /bin/bash -c \
	"export DISPLAY=$DISPLAY;
	export XAUTHORITY=$XAUTHORITY;
	export LC_MESSAGES=$HX_LC_MESSAGES;
	exec /bin/bash --login";
