* make polkit work
@ 2014-11-24 12:38 宋文武
2014-11-24 14:31 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: 宋文武 @ 2014-11-24 12:38 UTC (permalink / raw)
To: guix-devel
IIUC, our `polkit' can't see actions/rules from other packages.
In NixOS[0], the hardcoded "${out}/share/polkit-1" is overwrited to
"/var/run/current-system/sw/share/polkit-1", provided by system
packages.
Instead of take a similar path,
can we make "a proper patch which will be accepted upstream"?
The goal: (polkit-service (list udisks))
[0] https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/polkit/default.nix
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: make polkit work
2014-11-24 12:38 make polkit work 宋文武
@ 2014-11-24 14:31 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2014-11-24 14:31 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
宋文武 <iyzsong@gmail.com> skribis:
> IIUC, our `polkit' can't see actions/rules from other packages.
> In NixOS[0], the hardcoded "${out}/share/polkit-1" is overwrited to
> "/var/run/current-system/sw/share/polkit-1", provided by system
> packages.
> Instead of take a similar path,
> can we make "a proper patch which will be accepted upstream"?
Yes, I think it would best to have it honor $POLKIT_RULES_PATH and
$POLKIT_ACTIONS_PATH. Apparently this would have to be done in
src/polkitbackend/polkitbackendjsauthority.c and
src/polkitbackend/polkitbackendinteractiveauthority.c.
Could you try to do this?
Once we have this patch, we can start using it, and submit it upstream
for inclusion.
> The goal: (polkit-service (list udisks))
Yes, that sounds like the right approach.
Thanks for looking into this!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-24 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-24 12:38 make polkit work 宋文武
2014-11-24 14:31 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.