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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -