using Gtk;
using Gksu;

static void main(string[] args) {
	Gtk.init (ref args);
	var gksu = new Gksu.Context ();
	try {
		gksu.user = "root";
		gksu.message = "message";
		gksu.description = "desc";
		gksu.always_ask_password = true;
		gksu.message = "Start flasher";
		gksu.su ("xterm");
	} catch (GLib.Error e) {
		warning ("Error: "+e.message);
	}
#if DEMO
	try {
		string pass = gksu.ask_password ();
		print (@"Password is: '$pass'\n");
	} catch (GLib.Error e) {
		warning ("Error: "+e.message);
	}
#endif
}
