Date: Fri, 27 Jan 2012 11:34:43 GMT From: Alexandr Matveev <timon@timon.net.nz> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/164537: print/system-config-printer D-Bus config patch Message-ID: <201201271134.q0RBYh87006673@red.freebsd.org> Resent-Message-ID: <201201271140.q0RBeDJj026769@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <module> 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">; <busconfig> - <policy at_console="true"> + <policy group="operator"> <allow own="com.redhat.NewPrinterNotification"/> </policy> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201271134.q0RBYh87006673>