From owner-freebsd-gnome@FreeBSD.ORG Mon Oct 13 10:20:31 2008 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29A34106569D for ; Mon, 13 Oct 2008 10:20:31 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.185]) by mx1.freebsd.org (Postfix) with ESMTP id 99AD78FC14 for ; Mon, 13 Oct 2008 10:20:30 +0000 (UTC) (envelope-from sweetnavelorange@gmail.com) Received: by ti-out-0910.google.com with SMTP id d27so854089tid.3 for ; Mon, 13 Oct 2008 03:20:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=woNIfHLfZCr3WuWIVXzGsTaf/uYyc9jOCnaq4tSv1xU=; b=eh8afXRNTGaK2+myodaiphC5GBEW9fbFttpdlIX3jB0gaZ9tkjIPp6Um3sUldPQzAd 3vYqJNNKCHi7jpuMg6nqz8buoENCoT7Hry+AdNB6b6bgaHAVTp2me198aNhf59b4kzfB C5XPFb5BMhsEMm/m1s57sp2gzLQQRhBoxnCPY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=jqEuPImKBzp8NyHz7QzFwgBkObc2TKCt/XXFkhUxftlRUFJKTqxbShW/OytjC7sS1o 16a6GSQRwc+ubuGBL//Kzf4CkKGvA7Zw2UiYSsxWcfNV2MoLmgF1jM/8dN7/YMQinyNZ 6V393dm4UHPRqu+oc8uWKCpJXauKTMmxJcQsg= Received: by 10.110.109.12 with SMTP id h12mr5110467tic.52.1223891587539; Mon, 13 Oct 2008 02:53:07 -0700 (PDT) Received: by 10.110.105.2 with HTTP; Mon, 13 Oct 2008 02:53:07 -0700 (PDT) Message-ID: Date: Mon, 13 Oct 2008 22:53:07 +1300 From: "James Butler" To: freebsd-gnome@freebsd.org, freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Minor problems with Xfce X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2008 10:20:31 -0000 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