#!/bin/bash
# small script to enable root access to x-windows system

# enable root access
xhost +SI:localuser:root

sudo -E "$*"

# disable root access after application terminates
xhost -SI:localuser:root
