From: Duncan Young on
Hi all,

I'm currently trying to resolve an ongoing issue I have with printer-applet refusing to run for me.

The output from running it on the command line is as follows.


% printer-applet
printer-applet(10724) KLocalePrivate::initEncoding: Cannot resolve system encoding, defaulting to ISO 8859-1.QEventDispatcherUNIX::unregisterTimer: invalid argument
Traceback (most recent call last):
File "/usr/local/kde4/bin/printer-applet", line 1161, in <module>
applet = JobManager()
File "/usr/local/kde4/bin/printer-applet", line 297, in __init__
notification = NewPrinterNotification(bus, self)
File "/usr/local/kde4/bin/printer-applet", line 1050, in __init__
bus_name = dbus.service.BusName (PDS_OBJ, bus=bus)
File "/usr/local/lib/python2.6/site-packages/dbus/service.py", line 129, in __new__
retval = bus.request_name(name, name_flags)
File "/usr/local/lib/python2.6/site-packages/dbus/bus.py", line 306, in request_name
'su', (name, flags))
File "/usr/local/lib/python2.6/site-packages/dbus/connection.py", line 622, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.44" is not allowed to own the service "com.redhat.NewPrinterNotification" due to security policies in the configuration file

I'm running FreeBSD 8.0-RELEASE-p2 on amd64 an have a fairly up to date set of ports. i.e. kdebase-4.3.5 and kdeutils-printer-applet-4.3.5_2.

I believe the problem is due to policykit settings, but I must admit I'm not up on how to modify the config files.

I believe the relevant file is /usr/local/etc/dbus-1/system.d/newprinternotification.conf.

cat <!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy at_console="true">
<allow own="com.redhat.NewPrinterNotification"/>
</policy>

<policy user="root">
<allow own="com.redhat.NewPrinterNotification"/>
</policy>

<policy user="root">
<allow send_destination="com.redhat.NewPrinterNotification"
send_interface="com.redhat.NewPrinterNotification"/>
</policy>

<policy context="default">
<deny own="com.redhat.NewPrinterNotification"/>

<deny send_destination="com.redhat.NewPrinterNotification"
send_interface="com.redhat.NewPrinterNotification"/>
</policy>
</busconfig>

Any help would be greatly appreciated

Duncan
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"