Date: Tue, 23 Aug 2016 14:13:00 +0000 (UTC) From: Olivier Duchateau <olivierd@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r420679 - head/x11-wm/xfce4-session/files Message-ID: <201608231413.u7NED0mQ003500@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: olivierd Date: Tue Aug 23 14:12:59 2016 New Revision: 420679 URL: https://svnweb.freebsd.org/changeset/ports/420679 Log: Add missing braces in polkit example rules. PR: 212061 Submitted by: <yuri@rawbw.com> MFH: 2016Q3 Modified: head/x11-wm/xfce4-session/files/pkg-message.in Modified: head/x11-wm/xfce4-session/files/pkg-message.in ============================================================================== --- head/x11-wm/xfce4-session/files/pkg-message.in Tue Aug 23 14:04:01 2016 (r420678) +++ head/x11-wm/xfce4-session/files/pkg-message.in Tue Aug 23 14:12:59 2016 (r420679) @@ -3,8 +3,8 @@ files in %%LOCALBASE%%/etc/polkit-1/rule like this (replace PUTYOURGROUPHERE by your group): polkit.addRule(function (action, subject) { - if (action.id == "org.freedesktop.consolekit.system.restart" || - action.id == "org.freedesktop.consolekit.system.stop" + if ((action.id == "org.freedesktop.consolekit.system.restart" || + action.id == "org.freedesktop.consolekit.system.stop") && subject.isInGroup("PUTYOURGROUPHERE")) { return polkit.Result.YES; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608231413.u7NED0mQ003500>