Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2015 10:42:51 +0200
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        Olivier Duchateau <olivierd@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r393794 - head/x11-wm/xfce4-session/files
Message-ID:  <20150817104251.23eba6c4@kalimero.tijl.coosemans.org>
In-Reply-To: <201508091453.t79ErXx3077018@repo.freebsd.org>
References:  <201508091453.t79ErXx3077018@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 9 Aug 2015 14:53:33 +0000 (UTC) Olivier Duchateau <olivierd@FreeBSD.org> wrote:
> Author: olivierd
> Date: Sun Aug  9 14:53:33 2015
> New Revision: 393794
> URL: https://svnweb.freebsd.org/changeset/ports/393794
> 
> Log:
>   Update end-user information after revision r393789
> 
> 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	Sun Aug  9 14:29:00 2015	(r393793)
> +++ head/x11-wm/xfce4-session/files/pkg-message.in	Sun Aug  9 14:53:33 2015	(r393794)
> @@ -1,26 +1,20 @@
> -To be able to shutdown or reboot your system, you'll have to add a .pkla file
> -in %%LOCALBASE%%/etc/polkit-1/localauthority/50-local.d directory. Which looks
> +To be able to shutdown or reboot your system, you'll have to add .rules
> +files in %%LOCALBASE%%/etc/polkit-1/rules.d directory. Which looks
>  like this (replace PUTYOURGROUPHERE by your group):
>  
> -[Restart]
> -Identity=unix-group:PUTYOURGROUPHERE
> -Action=org.freedesktop.consolekit.system.restart
> -ResultAny=yes
> -ResultInactive=yes
> -ResultActive=yes
> -
> -[Shutdown]
> -Identity=unix-group:PUTYOURGROUPHERE
> -Action=org.freedesktop.consolekit.system.stop
> -ResultAny=yes
> -ResultInactive=yes
> -ResultActive=yes
> +polkit.addRule(function (action, subject) {
> +  if (action.id == "org.freedesktop.consolekit.system.restart" ||
> +      action.id == "org.freedesktop.consolekit.system.stop"
> +      && subject.isInGroup("PUTYOURGROUPHERE")) {

If && takes precedence over || you have to add extra parentheses:
( x || y ) && z



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150817104251.23eba6c4>