From owner-svn-ports-head@freebsd.org Sun Aug 9 14:53:34 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 146FF99D572; Sun, 9 Aug 2015 14:53:34 +0000 (UTC) (envelope-from olivierd@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE8657EF; Sun, 9 Aug 2015 14:53:33 +0000 (UTC) (envelope-from olivierd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t79ErXj0077019; Sun, 9 Aug 2015 14:53:33 GMT (envelope-from olivierd@FreeBSD.org) Received: (from olivierd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t79ErXx3077018; Sun, 9 Aug 2015 14:53:33 GMT (envelope-from olivierd@FreeBSD.org) Message-Id: <201508091453.t79ErXx3077018@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: olivierd set sender to olivierd@FreeBSD.org using -f From: Olivier Duchateau Date: Sun, 9 Aug 2015 14:53:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r393794 - head/x11-wm/xfce4-session/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2015 14:53:34 -0000 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")) { + return polkit.Result.YES; + } +}); For those who have working suspend/resume: -[Suspend] -Identity=unix-group:PUTYOURGROUPHERE -Action=org.freedesktop.upower.suspend -ResultAny=yes -ResultInactive=yes -ResultActive=yes +polkit.addRule(function (action, subject) { + if (action.id == "org.freedesktop.consolekit.system.suspend" + && subject.isInGroup("PUTYOURGROUPHERE")) { + return polkit.Result.YES; + } +});