Hi All !<br><br>I am writing a Gtk+ program, and the flow chart as below.<br><br>(1.) I call the polkit_gnome_auth_obtain( ) function to show the authenticatedialog.<br> polkit_gnome_auth_obtain(Pk_Action, 0, getpid( ), (PolKitGnomeAuthCB)Privilege_Gain, NULL, NULL);<br>
<br>(2.) <span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="當使用者輸入正確密碼">When the users enter the correct password, the callback function </span></span>Privilege_Gain( ) will be called.<br>
<br>My problem is:<br><br>In the callback function (<span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="當使用者輸入正確密碼"></span></span>Privilege_Gain( ) ), I want to close the current program and open the other one with privilege.<br>
But <span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="我不太確定該怎麼做">I'm not sure how to do that. </span></span><span id="result_box" class="short_text"><span style="background-color: rgb(255, 255, 255);" title="請任何人指引我方向,或是給我一個簡單的範例。">Please guide me the direction of any person, or give me a simple example.<br>
<br> Best Regard.<br> </span></span><span>Chang Yu Huang</span>