From owner-freebsd-questions@FreeBSD.ORG Mon Oct 13 19:30:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 037161065687 for ; Mon, 13 Oct 2008 19:30:21 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by mx1.freebsd.org (Postfix) with ESMTP id C62FF8FC12 for ; Mon, 13 Oct 2008 19:30:20 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1746974wfg.7 for ; Mon, 13 Oct 2008 12:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=yPRX3izwKL+hsl0F5s1k/cTQ8LKDftDYy/AWq6j+7pA=; b=Tj+tbXqizMLLSFx4Z6LoxWhinUJnbUXU3tP/LKF3hfUzHGkSb06i3wXKMrRpUkDb2J cGyiiHUeXAlTE13raXi2wEMdoN/0hVbqsw+O9r3RS09OYsoOm5qYqeFB5L5xRHtVcpgJ l0+XTgIizKYvX1vtPCHpN57Ig3D1zeTf6R6VY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=k5bzwCCWVcepbf0r1YzSWo39t4PZb0kL/4k4fxkNaAVKxbOm6P7iS73KkpdA0LpFiy kYs2F70RGqim4Aw7ykyRzCqLkFTRyGwuhTjpGPvHPqaYEynW7W4BsLFsyY8jueBhL4Lb o9tQRaUqkdmM8gpUnbWojxlkXTyccrXIcdkDU= Received: by 10.115.58.18 with SMTP id l18mr5839556wak.177.1223926219747; Mon, 13 Oct 2008 12:30:19 -0700 (PDT) Received: from jamesb.kiwiplan.co.nz (db.kiwiplan.co.nz [202.27.222.237]) by mx.google.com with ESMTPS id f20sm20818641waf.53.2008.10.13.12.30.17 (version=SSLv3 cipher=RC4-MD5); Mon, 13 Oct 2008 12:30:19 -0700 (PDT) Date: Tue, 14 Oct 2008 08:30:09 +1300 From: James Butler To: Manolis Kiagias Message-ID: <20081014083009.45d72f76@jamesb.kiwiplan.co.nz> In-Reply-To: <48F32A5B.2010408@gmail.com> References: <48F32A5B.2010408@gmail.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.9; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Minor problems with Xfce 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: Mon, 13 Oct 2008 19:30:21 -0000 Manolis Kiagias wrote: > James Butler wrote: > > Greetings all, > > > > I'm using 7-stable on my Thinkpad X31, with Xfce recently (2 weeks > > or so) installed from packages. I have two minor problems with > > Xfce, at least one of which could be HAL/DBUS related - I'd > > appreciate some advice to rule out misconfiguration on my part. > > > > Firstly, when I bring up the Xfce Exit dialog, the Restart and > > Shutdown buttons are greyed out. I have read the Xfce FAQ on the > > subject, which mentions that the session manager tries HAL shutdown > > methods first, then falls back to sudo. I don't have sudo installed, > > but I have both hald and dbus (system and session) running. > > > > Checking the xsession error log after an attempted Exit reveals: > > > > ** Message: xfsm-shutdown-helper.c:215: HAL not available or does > > not permit to shutdown/reboot the computer, trying sudo fallback > > instead. > > > > and (as expected): > > > > ** (xfce4-session:1066): WARNING **: sudo was not found. You will > > not be able to shutdown your system from within Xfce > > > > Looking at xfsm-shutdown-helper.c I see that the session manager > > probes HAL for shutdown support by trying a dummy method call: > > > > /* this is a simple trick to check whether we are allowed to > > * use the org.freedesktop.Hal.Device.SystemPowerManagement > > * interface without shutting down/rebooting now. > > */ > > message = dbus_message_new_method_call ("org.freedesktop.Hal", > > > > "/org/freedesktop/Hal/devices/computer", > > > > "org.freedesktop.Hal.Device.SystemPowerManagement", > > "ThisMethodMustNotExistInHal"); > > > > [snip] > > > > /* if we receive org.freedesktop.DBus.Error.UnknownMethod, then > > * we are allowed to shutdown/reboot the computer via HAL. > > */ > > if (strcmp (error.name, > > "org.freedesktop.DBus.Error.UnknownMethod") == 0) > > > > So out of curiosity I tried this manually and got the 'correct' > > error: > > > > $ dbus-send --system --print-reply --dest=org.freedesktop.Hal > > /org/freedesktop/Hal/devices/computer > > org.freedesktop.Hal.Device.SystemPowerManagement.ThisMethodMustNotExistInHal > > Error org.freedesktop.DBus.Error.UnknownMethod: Method > > "ThisMethodMustNotExistInHal" with signature "" on interface > > "org.freedesktop.Hal.Device.SystemPowerManagement" doesn't exist > > > > Now I don't claim to understand much of this, so any help would be > > greatly appreciated. I have provided the output of various commands > > from the freebsd-gnome Bugging guide at > > http://homepages.ihug.co.nz/~sweetnavelorange/. > > > > My other problem is possibly unrelated, but any actions I perform > > which would remove or update icons on the desktop (deleting a file, > > emptying Trash) don't take effect until xfdesktop is restarted or I > > log out and then in. Any ideas? Notably, automatic detection and > > mounting of USB drives, which seems to be a fragile area for many > > HAL users, works perfectly for me. > > > > Thanks in advance, > > -James Butler > > > > Insert something like the following in your > /usr/local/etc/PolicyKit/PolicyKit.conf (between the tags): > > > > > > > > > > > I don't have the machine on me just now, but I should mention I played with this file and currently have (for testing purposes) something permissive like: This allows me to shutdown the machine by "dbus-send"-ing the appropriate message - doesn't help Xfce though. I may play with it some more. > > Have a look at /usr/local/share/PolicyKit/policy. Examine the > contents of the files there to see possible actions. > It may also help to have a look at this page, if you haven't already: > > http://www.freebsd.org/gnome/docs/halfaq.html Yes, I have read and re-read it :-) > > I have some annoyances with XFCE myself, but I haven't bothered > seriously to fix them. I have the same no-icon-update problem on my > desktop. I keep pressing F5 as a workaround. Like in your case, USB > flash drive mounting works perfectly. Another thing that does not > work for me, is clicking an http link in an app: it will not open > firefox. Weird, as firefox is selected as the default / preferred > browser. I haven't tried this. Anyway, thanks for the hints. -James Butler