polkit: not getting the hang of it

6 views
Skip to first unread message

B. Henry

unread,
May 17, 2016, 6:07:00 PM5/17/16
to Vinux_Development
I spent a few hours trying to figure out how to use polkit some weeks ago, and thought I was getting somewhere, but when I actually tried to use it
nothing worked.
While a couple of the tutorials I found where helpful, as is often the case some important basics were not really explained.
I am unclear as to whether or not one can use polkit with most any graphical application, or if there is something that must be coded in to the ap
itself to allow it to work with polkit, or perhaps I should say to allow polkit to work with it.
How does the devices indicator shutdown or reboot the system with out a PW prompt, with polkit?
I might get the hang of things just by rereading the same tutorial(s) I looked at a couple of months ago, but if anyone can recommend some resource that
I can use to get up to speed with PK, it'd be appreciated.
Thanks in advance for any assistance.


--
B.H.
Registerd Linux User 521886

Luke Yelavich

unread,
May 18, 2016, 7:48:32 PM5/18/16
to vinux-de...@googlegroups.com
On 18 May 2016, at 8:06 AM, B. Henry <burt1...@gmail.com> wrote:
> I am unclear as to whether or not one can use polkit with most any graphical application, or if there is something that must be coded in to the ap
> itself to allow it to work with polkit, or perhaps I should say to allow polkit to work with it.

For best results, the application needs to use policy kit directly in the code. I am not sure how it works, since I have not had a look at the API, but I suspect it allows parts of your app to run with elevated privileges.

There is pkexec, or something similar, but I have no idea what it allows/how it works etc.

Luke

B. Henry

unread,
May 18, 2016, 8:12:25 PM5/18/16
to vinux-de...@googlegroups.com
Yeah, pkexec has not worked for me so far.
I'll have to take a fresh look at it some time soon when I have some time, and hopefully a fresh mind/maybe catch something I missed first try.

--
B.H.
Registerd Linux User 521886


Luke Yelavich wrote:
Thu, May 19, 2016 at 09:48:16AM +1000
> --
> --
> You received this message because you are subscribed to the Google
> Groups Vinux Development Forum.
> To post to this group, send email to vinux-de...@googlegroups.com
> To unsubscribe from this group, send email to
> vinux-developm...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/vinux-development?hl=en?hl=en
>
> Vinux Home Page: http://vinuxproject.org/
> Vinux Wiki Documentation: http://vinuxproject.org/wiki/
>
> ---
> You received this message because you are subscribed to the Google Groups "The Vinux Development Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vinux-developm...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages