Bug 164537 - print/system-config-printer D-Bus config patch
Summary: print/system-config-printer D-Bus config patch
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-27 11:40 UTC by timon
Modified: 2012-03-14 15:40 UTC (History)
0 users

See Also:


Attachments
file.diff (411 bytes, patch)
2012-01-27 11:40 UTC, timon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description timon 2012-01-27 11:40:12 UTC
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.

Fix: Add following patch to ports/print/system-config-printer/files/ (remove .txt from file name)


Patch attached with submission follows:
How-To-Repeat: Install print/system-config-printer and try to run printer-applet or look into .xsession-errors
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-01-27 11:40:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gnome

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-03-14 15:33:59 UTC
mezz        2012-03-14 15:33:50 UTC

  FreeBSD ports repository

  Modified files:
    print/system-config-printer Makefile 
  Added files:
    print/system-config-printer/files 
                                      patch-newprinternotification.conf 
  Log:
  Policy "at_console" work in Linux, but don't work in FreeBSD so changed it
  to group="operator" instead. Bump the PORTREVISION.
  
  PR:             ports/164537
  Submitted by:   Alexandr Matveev <timon@timon.net.nz>
  Feature safe:   yes
  
  Revision  Changes    Path
  1.25      +1 -1      ports/print/system-config-printer/Makefile
  1.1       +10 -0     ports/print/system-config-printer/files/patch-newprinternotification.conf (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Jeremy Messenger freebsd_committer freebsd_triage 2012-03-14 15:34:02 UTC
State Changed
From-To: open->closed

Committed, thanks!