← Back to team overview

desktop-packages team mailing list archive

[Bug 1426420] [NEW] unity-settings daemon notifies as error an info message Edit

 

Public bug reported:

[This bug is related to bug #1202198]

When sending a document to a printer, unity-settings daemon will show a
message like:

ERROR: connecting to printer

Nevertheless, the document will print without any issue.
Actually this message is a warning or info message, as it is telling the user that it is connecting to the printer.

In Ubuntu 14.10 (Utopic), there are two packages that can be involved in
gnome printer norifications: gnome-settings-daemon and unity-settings-
daemon. The latter package seems to be a fork of the former, for Unity
use I suppose.

These two packages come with a printer notification plugin. The one of
gnome-settings-daemon is /usr/lib/gnome-settings-daemon/gsd-printer and
the other is /usr/lib/unity-settings-daemon/usd-printer.

I found that if the gnome-flashback session (a.ka. "Gnome Classic") is
used, the printer notification plugin involved is usd-printer, from the
unity-settings-daemon package. I guess that gsd-printer is used in a
Gnome Shell session (I don't use it so I can test my guessing).

So, to remove the connecting-to-printer false error message, I think the
safest approach is to patch both packages, just by adding the lines:

 if (g_str_has_prefix (reason, "connecting-to-device"))
         return TRUE;

to the reason_is_blacklisted() static function in gsd-print-
notifications-manager.c.

A patch is attached for the gnome-settings-daemon package and I'll also
fill a bug report with a patch for the unity-settings-daemon package.

Ubuntu 14.10
unity-settings-daemon_14.04.0+14.10.20141014-0ubuntu1

** Affects: unity-settings-daemon (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "suppress-printer-connecting-to-device-notifification.patch"
   https://bugs.launchpad.net/bugs/1426420/+attachment/4329477/+files/suppress-printer-connecting-to-device-notifification.patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to unity-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1426420

Title:
  unity-settings daemon notifies as error an info message Edit

Status in unity-settings-daemon package in Ubuntu:
  New

Bug description:
  [This bug is related to bug #1202198]

  When sending a document to a printer, unity-settings daemon will show
  a message like:

  ERROR: connecting to printer

  Nevertheless, the document will print without any issue.
  Actually this message is a warning or info message, as it is telling the user that it is connecting to the printer.

  In Ubuntu 14.10 (Utopic), there are two packages that can be involved
  in gnome printer norifications: gnome-settings-daemon and unity-
  settings-daemon. The latter package seems to be a fork of the former,
  for Unity use I suppose.

  These two packages come with a printer notification plugin. The one of
  gnome-settings-daemon is /usr/lib/gnome-settings-daemon/gsd-printer
  and the other is /usr/lib/unity-settings-daemon/usd-printer.

  I found that if the gnome-flashback session (a.ka. "Gnome Classic") is
  used, the printer notification plugin involved is usd-printer, from
  the unity-settings-daemon package. I guess that gsd-printer is used in
  a Gnome Shell session (I don't use it so I can test my guessing).

  So, to remove the connecting-to-printer false error message, I think
  the safest approach is to patch both packages, just by adding the
  lines:

   if (g_str_has_prefix (reason, "connecting-to-device"))
           return TRUE;

  to the reason_is_blacklisted() static function in gsd-print-
  notifications-manager.c.

  A patch is attached for the gnome-settings-daemon package and I'll
  also fill a bug report with a patch for the unity-settings-daemon
  package.

  Ubuntu 14.10
  unity-settings-daemon_14.04.0+14.10.20141014-0ubuntu1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-settings-daemon/+bug/1426420/+subscriptions


Follow ups

References