Hi All !

I am writing a Gtk+ program, and the flow chart as below.

(1.) I call the polkit_gnome_auth_obtain( ) function to show the
authenticatedialog.
polkit_gnome_auth_obtain(Pk_Action, 0, getpid( ),
(PolKitGnomeAuthCB)Privilege_Gain, NULL, NULL);

(2.) When the users enter the correct password, the callback function
Privilege_Gain(
) will be called.

My problem is:

In the callback function (Privilege_Gain( ) ), I want to close the current
program and open the other one with privilege.
But I'm not sure how to do that. Please guide me the direction of any
person, or give me a simple example.

Best Regard.
Chang Yu Huang
_______________________________________________
polkit-devel mailing list
polkit-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/polkit-devel

Reply via email to