0

I'm writing a .sh file which should open monodevelop in root mode. I don't want a terminal to be used for it since it has to stay open.

Now, what I currently got:

#!/bin/bash
sudo monodevelop

Now I need to run it in a terminal, but I want my script to bring up a dialog when clicked on Run (not Run in terminal) so I can enter my password for sudo, so it will run monodevelop as root afterwards.

Is there any way I can get this done?

1 Answers1

0

As Jacob Vlijm said:

It's simply done by using gksu except for sudo:

#!/bin/bash
gksu monodevelop