From owner-freebsd-questions@FreeBSD.ORG Thu Apr 17 18:11:12 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43B1E1065670 for ; Thu, 17 Apr 2008 18:11:12 +0000 (UTC) (envelope-from peter.piggybox@virgin.net) Received: from n064.sc1.he.tucows.com (smtpout0162.sc1.he.tucows.com [64.97.136.162]) by mx1.freebsd.org (Postfix) with ESMTP id 1BBE48FC1A for ; Thu, 17 Apr 2008 18:11:11 +0000 (UTC) (envelope-from peter.piggybox@virgin.net) Received: from sc1-out08.emaildefenseservice.com (64.97.139.2) by n064.sc1.he.tucows.com (7.2.069.1) id 476977050124CBCD; Thu, 17 Apr 2008 18:11:11 +0000 X-SpamScore: 2 X-Spamcatcher-Summary: 2, 0, 0, 2c14f315ef764944, f774678b0f215e0d, peter.piggybox@virgin.net, -, RULES_HIT:355:379:599:601:945:966:967:973:980:988:989:1260:1261:1277:1312:1313:1314:1345:1359:1437:1516:1518:1519:1534:1541:1593:1594:1595:1596:1711:1730:1747:1766:1792:2196:2198:2199:2200:2393:2525:2551:2553:2559:2563:2682:2685:2857:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3027:3353:3622:3865:3866:3867:3868:3869:3870:3872:3874:3934:3936:3938:3941:3944:3947:4037:4385:4860:5007:6261: 7679:7875:7903, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:, MSBL:none, DNSBL:none, TSO:0 X-Spamcatcher-Explanation: Received: from laptop.piggybox (client-86-27-182-143.popl.adsl.virgin.net [86.27.182.143]) by sc1-out08.emaildefenseservice.com (Postfix) with ESMTP; Thu, 17 Apr 2008 18:11:10 +0000 (UTC) Received: from laptop.piggybox (localhost [127.0.0.1]) by laptop.piggybox (8.14.2/8.14.2) with ESMTP id m3HIB6Xk001403; Thu, 17 Apr 2008 19:11:06 +0100 (BST) (envelope-from peter@laptop.piggybox) Received: (from peter@localhost) by laptop.piggybox (8.14.2/8.14.2/Submit) id m3HIB6Dv001400; Thu, 17 Apr 2008 19:11:06 +0100 (BST) (envelope-from peter) Date: Thu, 17 Apr 2008 19:11:00 +0100 From: Peter Harrison To: Peter Harrison Message-ID: <20080417181100.GA1260@laptop.piggybox> References: <20080415215355.GB1594@laptop.piggybox> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080415215355.GB1594@laptop.piggybox> User-Agent: Mutt/1.4.2.3i Cc: questions@freebsd.org Subject: Re: Xfce and shutting down... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2008 18:11:12 -0000 Tuesday, 15 April 2008 at 22:53:55 +0100, Peter Harrison said: > I upgraded my ports a week or so ago (after the Gnome 2.20 upgrade if that helps). > > I'm running Xfce on both 7.0 and 6.3. Before the upgrade, I could use the Xfce opanel shutdown button to poweroff the system (with the appropriate entry in sudoers). > > Following the upgrade, I simply get returned to the login screen, with the following message repeated twice in /var/log/messages: > > console-kit-daemon[839]: GLib-CRITICAL: g_hash_table_destroy: assertion `hash_table != NULL' failed > > Can anyone shed any light on what's changed to prevent Xfce from being able to shut the system down? (Note, I can still poweroff by su-ing to root and running 'shutdown -p now'). > > Can anyone shed any light? > > Thanks for your help. Answering my own question, but for the sake of the archives... It seems that xfsm-shutdown-helper no longer uses sudo to gain the necessary privileges to shut the system down - instead it uses hal & policykit. Unfortunately this changeover doesn't seem to be documented anywhere - either for freebsd or xfce. However, give the user the appropriate permissions in /usr/local/etc/PolicyKit/PolicyKit.conf (see the man page for details) and it all starts working again. Peter Harrison > > > Peter Harrison. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"