In Gnome, there is
In KDE, there is
Is there a command that can be run on any desktop environment that will prompt the user for the root password and then run a command?
The manpage for the
As far as I can tell (and my testing backs this up), this will work in both the Gnome and KDE desktop environments. For example:
...will prompt you for your root password and then launch Nautilus.