Thanks, Dan - and Simon - "in flux" isn't even the word for how rapidly this is developing and changing; not even two full months between the 0.3 and 0.5 releases of PolicyKit, yet, the differences between the two in number and in nature are staggering...
As soon as I installed PolicyKit-0.5, polkit-policy-file-validate and polkit-list-actions started working; for example: $ polkit-list-actions com.example.blahblaster.run-as-root org.gnome.policykit.examples.tweak org.gnome.policykit.examples.frobnicate I'm not sure at this point if ConsoleKit is required for the overall operation of PolicyKit; the list of pre-reqs I saw for P.K. didn't list it. Ordinarily I would have installed it already; at this point, I think I'll wait and see whether it ends up being necessary or not... Thanks again. I had contemplated using the "latest development version" of P.K. and of HAL but decided to hold off upon examining the latest HAL's README.txt - it wants glib-2.0 >= 2.6.0 && gobject-2.0 > 2.6.0, both of which are a whole lot newer than anything I've got on any of my systems. I found that rather odd as the version of everything else it wants is <= what I'm using. I'm sure there's a reason for it though. It'll certainly be interesting if it (PolicyKit) turns out to be able to do what it seems like it has the potential to do; it's certainly picqued my interest. I'm still looking for example .policy files; if anyone knows of any or happens to come accross any, please let me know. Thanks again very much. - Larry Dan Nicholson writes: > On 10/1/07, randd <[EMAIL PROTECTED]> wrote: >> >> This may very well be a case of me not knowing what the heck I'm doing, and >> I apologize in advance if that's the case... I'm trying to install >> PolicyKit-0.3 (the tarball at >> http://people.freedesktop.org/~david/dist/PolicyKit-0.3.tar.gz, not the >> latest development version from git). It builds and installs w no errors; > > First thing is that you might want to try a newer release. There was a > major rewrite a little while ago, and the example conf file online > probably won't work for your older release. The new releases (and old > ones) are here: > > http://hal.freedesktop.org/releases/ > >> I decided to RTFM and created the directory myself (install -d -m755 >> -opolkit -gpolkit /usr/share/PolicyKit/policy/). I placed in it the example >> at freedesktop.org: >> http://hal.freedesktop.org/docs/PolicyKit/polkit-conf.html >> naming it "example.policy". >> >> When I type polkit-list-actions, it responds: ** (process:15928): WARNING >> **: Error loading policy files from /usr/share/PolicyKit/policy: >> /usr/share/PolicyKit/policy/sample.policy:7: parse error: parsing aborted >> polkit-policy-file-validate gives the same error. >> >> If I trim example.policy so it contains nothing more than: >> <?xml version="1.0" encoding="UTF-8"?> >> <!DOCTYPE policyconfig PUBLIC >> "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" >> "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"> >> <policyconfig> >> </policyconfig> >> >> then neither tool returns an error. > > I'd expect something in that example file is not expected on 0.3. As I > said before, things changed quite a bit recently. Try version 0.5. > Here's the announcement for that version: > > http://lists.freedesktop.org/archives/hal/2007-August/009511.html > > I think it probably needs ConsoleKit to be running, too. > > -- > Dan > -- > http://linuxfromscratch.org/mailman/listinfo/blfs-support > FAQ: http://www.linuxfromscratch.org/blfs/faq.html > Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
