it looks like it's not really needed, so it's untested.
GKSu is a library that provides a Gtk+ frontend to su and sudo. It
supports login shells and preserving environment when acting as a
su frontend. It is useful to menu items or other graphical programs
that need to ask a user's password to run another program as another
user.