! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfprint4-manager fails to display cups printers
Status:
RESOLVED: WONTFIX
Product:
Xfprint4
Component:
General

Comments

Description Justin C 2009-03-28 02:50:10 CET
Problem:

When I run xfprint4-manager, the window is empty and I can only access Quit and About from the print manager's menubar.

The cups webpage interface shows the printer is installed and most applications print fine.

I would like to use xfprint4-manager to verify documents sent to the printer for applications that don't print fine instead of the tedious cups webpage interface.


Steps to reproduce:

1.  n/a.  I just login as nonroot user, start X, run xfprint4-manager from the Accessories menu.


System info:

Gentoo Linux
Xfce 4.6.0
Cups 1.3.9
Xfprint 4.6.0 (with cups_plugin.so compiled and installed)


Steps to troubleshoot:

1. recompiled xfprint with debugging enabled.
2. run xfprint-settings from terminal

$ xfprint-settings
DBG[printing-system.c:79] load_printing_system(): trying to load printing system module /usr/lib/xfce4/xfprint-plugins/bsdlpr_plugin.so
DBG[printing-system.c:171] load_printing_system(): printing system module loaded
DBG[printing-system.c:79] load_printing_system(): trying to load printing system module /usr/lib/xfce4/xfprint-plugins/cups_plugin.so
DBG[printing-system.c:171] load_printing_system(): printing system module loaded

3. looks good.  run xfprint4-manager from terminal

$ xfprint4-manager
** (xfprint4-manager:6698): WARNING **: xfprint: XfPrint/system is not set

4. open Settings Editor.  XfPrint/system not found, but printing-system is set to cups_plugin.so.


Is it possible that some parts of xfprint were not completely converted to xfconf?  In commit r27696 of xfce-commit mailing list, warning messages for "XfPrint/system" were replaced with warning messages for "printing-system".
Comment 1 charlie-tca 2010-02-15 16:23:38 CET
This bug has also been reported on Ubuntu Launchpad as:
https://bugs.launchpad.net/bugs/474656

From the launchpad report:

There seems to be a settings mixup related to xfprint4. It is impossible to use cups printers. Symptoms are:

totty@Kapitaen:~$ xfprint4-manager

** (xfprint4-manager:12363): WARNING **: xfprint: XfPrint/system is not set
totty@Kapitaen:~$ xfprint4

** (xfprint4:12364): WARNING **: Unable to load printing system module cups_plugin.so

There is no XfPrint/system setting but an unused

totty@Kapitaen:~$ xfconf-query -c xfprint -l
/printing-system
totty@Kapitaen:~$ xfconf-query -c xfprint -p /printing-system
cups_plugin.so

Cheers, Torsten

ProblemType: Bug
Architecture: i386
Date: Tue Nov 3 13:02:29 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: xfprint4 4.6.1-1ubuntu2
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: xfprint4
Uname: Linux 2.6.31-14-generic i686
Comment 2 Zbigniew Diaczyszyn 2010-11-08 11:32:35 CET
I am using xfprint 4.6.1 with Zenwalk 6.2, a Slackware based distro.

xfprint-settings shows the cups system selected and the following error:

(xfprint-settings:3258): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed

But:

$ xfprint4-manager 
** (xfprint4-manager:2109): WARNING **: xfprint: XfPrint/system is not set

and still:

$ xfprint4
** (xfprint4:2150): WARNING **: Unable to load printing system module cups_plugin.so

My cups.so is here:

$ locate cups_plugin.so
/usr/lib/xfce4/xfprint-plugins/cups_plugin.so

$ ldd /usr/lib/xfce4/xfprint-plugins/cups_plugin.so | grep notfound

No lib missing.

Gentoo forums say that xfprint can't find the correct channel ... but I am no expert in this.

I would set priority to 'high'. No mousepad printing ...
Comment 3 Justin C 2010-11-20 02:19:13 CET
Here's a system update:

System info:------------------------------------

Gentoo Linux
Xfce 4.6.2
Cups 1.4.4
Xfprint 4.6.1-r1 (with cups_plugin.so compiled and installed)


Changes to Problem:-----------------------------

1.  at shell prompt, run xfprint4-manager, warning appears:
  "** (xfprint4-manager:7056): WARNING **: Unable to load printing system module cups_plugin.so"

2.  Printer Manager window appears and displays my printer and that the printer is 'Idle'.

3.  If I remove paper from the printer, and print a test page from Mousepad, the Printer Manager shows my printer is 'Processing', and returns to 'Idle' even though there's an error (printer reports no paper).


------------------------------------------------
From my end, I see some progress.  I am confused how xfprint4-manager can list and track my printer without loading the cups_plugin.so.



Use case:---------------------------------------
When I filed this bug, I believe my interest was in using xfprint4-manager to modify the default settings of my printer.
Typically I use OpenOffice, Inkscape, Evince, etc to change printer settings before I print.  However, these changes seemed to become the default after printing, and I wanted to reset my default settings without printing another document.


Work around:------------------------------------
I've been using CUPS admin through my web-browser to restore printer settings.  The web interface seems overkill, imho, but until xfprint4-manager can replace it, it gets me by.
Comment 4 Landry Breuil editbugs 2011-01-03 14:10:03 CET
Created attachment 3318 
Fix

The attached patch fixes the issue by querying the proper xfconf property to know which type of backend to use, and remove the extra trailing comma which made the warning message shown regardless of backend loading result (also reported in http://bugzilla.xfce.org/show_bug.cgi?id=6089)
Comment 5 Robby Workman editbugs 2014-12-02 20:52:51 CET
Product EOL (End-of-life)

Bug #5160

Reported by:
Justin C
Reported on: 2009-03-28
Last modified on: 2014-12-02

People

Assignee:
Jean-François Wauthy
CC List:
3 users

Version

Attachments

Fix (1.14 KB, patch)
2011-01-03 14:10 CET , Landry Breuil
no flags

Additional information