Created attachment 158382 [details] Patch to update sysutils/polkit - Update to 0.113 - Add LICENSE blob - Adjust dependencies - Reorganize options helper - Update description Patch fixes also bugs #199983 and #195538. Note: Patch uses lang/spidermonkey170, but polkit supports also lang/spidermonkey185 (I use this one on other box, I don't know which one is better). I created new user 'polkitd', but we can use 'polkit' user, except we must replace /nonexistent by /var/empty otherwise daemon denies to launch. .pkla files must be rewritten, and save in /usr/local/etc/polkit-1/rules.d/.
(In reply to Olivier Duchateau from comment #0) Update fixes only bug #199983.
Created attachment 158535 [details] Patch to update sysutils/polkit Update patch, after revision r391500.
Does this work for !root? last time I did a brief look at polkit it refused to work if not started by root.
(In reply to Koop Mast from comment #3) Yes, everything works fine, I use it on Xfce session. pkaction -v --action-id org.xfce.thunar org.xfce.thunar: description: Run Thunar as root message: Authentication is required to run Thunar as root. vendor: Thunar vendor_url: http://xfce.org/ icon: system-file-manager implicit any: no implicit inactive: auth_admin implicit active: auth_admin annotation: org.freedesktop.policykit.exec.path -> /usr/local/bin/thunar annotation: org.freedesktop.policykit.exec.allow_gui -> true pkaction --version pkaction version 0.113 Polkit 0.112 was buggy (even with some patches), but this version is ok.
*** Bug 199983 has been marked as a duplicate of this bug. ***
A commit references this bug: Author: kwm Date: Sun Aug 9 13:28:43 UTC 2015 New revision: 393789 URL: https://svnweb.freebsd.org/changeset/ports/393789 Log: Update polkit to 0.113. [1] - Add LICENSE blob - Adjust dependencies - Reorganize options helper - Update description file PR: 201362 [1], 194789 Submitted by: olivierd@ [1] Tested by: olivierd@, Tobias Berner <tcberner@gmail.com>, and myself Changes: head/sysutils/polkit/Makefile head/sysutils/polkit/distinfo head/sysutils/polkit/files/patch-Makefile.in head/sysutils/polkit/files/patch-data_Makefile.in head/sysutils/polkit/files/patch-docs_man_polkit.xml head/sysutils/polkit/files/patch-src_polkitagent_polkitagenthelperprivate.c head/sysutils/polkit/files/patch-src_polkitbackend_Makefile.in head/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendinteractiveauthority.c head/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendlocalauthority.c head/sysutils/polkit/files/patch-src_polkitd_gposixsignal.c head/sysutils/polkit/pkg-descr head/sysutils/polkit/pkg-plist