This tool provides Yad based front-end for su/sudo (spsu/spsudo) allowing users to give a password and run graphical commands as root/sudo without needing to invoke su/sudo in a terminal emulator.
It can be used as a Gksu replacement to run any application as root/sudo.
sudo apt install sparky-su
To run a terminal based application using spsu, run:
spsu "x-terminal-emulator -e command"