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?

2
  • Use gksu instead of sudo (you might need to install gksu). Must be a dupe of something. Oct 18, 2015 at 7:04
  • Glad it works :) Oct 18, 2015 at 7:09

1 Answer 1

0

As Jacob Vlijm said:

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

#!/bin/bash
gksu monodevelop

Not the answer you're looking for? Browse other questions tagged .