From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 27 11:40:13 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78DE31065676 for ; Fri, 27 Jan 2012 11:40:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4BBF98FC18 for ; Fri, 27 Jan 2012 11:40:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0RBeDCC026770 for ; Fri, 27 Jan 2012 11:40:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0RBeDJj026769; Fri, 27 Jan 2012 11:40:13 GMT (envelope-from gnats) Resent-Date: Fri, 27 Jan 2012 11:40:13 GMT Resent-Message-Id: <201201271140.q0RBeDJj026769@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexandr Matveev Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 542031065675 for ; Fri, 27 Jan 2012 11:34:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 221A48FC18 for ; Fri, 27 Jan 2012 11:34:45 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0RBYhD7006674 for ; Fri, 27 Jan 2012 11:34:43 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q0RBYh87006673; Fri, 27 Jan 2012 11:34:43 GMT (envelope-from nobody) Message-Id: <201201271134.q0RBYh87006673@red.freebsd.org> Date: Fri, 27 Jan 2012 11:34:43 GMT From: Alexandr Matveev To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/164537: print/system-config-printer D-Bus config patch X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2012 11:40:13 -0000 >Number: 164537 >Category: ports >Synopsis: print/system-config-printer D-Bus config patch >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 27 11:40:12 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Alexandr Matveev >Release: 9.0-RELEASE >Organization: .masterhost >Environment: FreeBSD localhost 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: printer-applet don't start with following error: Traceback (most recent call last): File "/usr/local/kde4/bin/printer-applet", line 1153, in applet = JobManager() File "/usr/local/kde4/bin/printer-applet", line 299, in __init__ notification = NewPrinterNotification(bus, self) File "/usr/local/kde4/bin/printer-applet", line 1042, in __init__ bus_name = dbus.service.BusName (PDS_OBJ, bus=bus) File "/usr/local/lib/python2.7/site-packages/dbus/service.py", line 129, in __new__ retval = bus.request_name(name, name_flags) File "/usr/local/lib/python2.7/site-packages/dbus/bus.py", line 306, in request_name 'su', (name, flags)) File "/usr/local/lib/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.28" is not allowed to own the service "com.redhat.NewPrinterNotification" due to security policies in the configuration file The reason is wrong dbus configuration file. Policy "at_console" work in Linux, but don't work in FreeBSD. >How-To-Repeat: Install print/system-config-printer and try to run printer-applet or look into .xsession-errors >Fix: Add following patch to ports/print/system-config-printer/files/ (remove .txt from file name) Patch attached with submission follows: --- newprinternotification.conf.orig 2012-01-27 15:12:33.000000000 +0400 +++ newprinternotification.conf 2012-01-27 15:12:53.000000000 +0400 @@ -2,7 +2,7 @@ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> - + >Release-Note: >Audit-Trail: >Unformatted: