<div dir="ltr">HI, I'm one of the developers of xbmc and am looking for some helping at creating a polkit authentication agent.<div><br>We wish to do this on systems were we are the only session available on the computer (e.g. htpc environments) or when the user has simply used our desktop session.</div>
<div><br></div><div><div>We are currently trying to expand our addon system to handle binary addons and wish to do so using the distros own repositories. So we will most likely be using packagekit as a means to abstract the repository and package install handling.</div>
</div><div><br></div><div>So now to the questions I'm having :)</div><div><br></div><div>What I'm trying to do is register a polkit authentication agent in a python script, through the dbus api. I have attached, a rather simplistic, first start of this. From what I can read out of the logs it seems to register alright but nothing is relayed to it for authentication.</div>
<div><br></div><div>First question is that it seems like RegisterAuthenticationAgent takes a few different subject kinds<font size="3">. </font>unix-process and unix-session. What is the difference between these and what should I be using?</div>
<div><br></div><div>When registering I submit my object path, which is '/org/xbmc/polkit' but what is the destination for this object? I'm using 'org.xbmc.polkit' for my service, but how does polkit knows this? Could this be why its not called to authenticate even if register went through alright?</div>
<div><br></div><div>Thankful for any help regarding these matters!</div><div><br></div><div>Cheers,</div><div>Tobias</div></div>