linux - Launching authorization dialog while running one application -


in application need write files linux file system folder, requires

super user access permission.

so, how can invoke dialog current user have super user permission until

write operation finishes. using glib related apis.

regards, lenin

you need use gksu or newer policykit.

gksu library provides gtk+ frontend su , sudo. supports login shells , preserving environment when acting su frontend. useful menu items or other graphical programs need ask user's password run program user.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -