Bug#333099: please support xprint if it is installed

2005-12-23 Thread Drew Parsons

 In Sarge's mozilla-browser, (in the File-Print dialog) I am able to
 select from a long list of printers while in mozilla-firefox there is
 only one option, Postscript/Default (or print-to-file).
 
 But why should mozilla-browser and mozilla-firefox be
 inconsistent about xprint support?
 

Firefox does support Xprint, when, as you noticed in your patch,
XPSERVERLIST is defined.

Do you mean that on your system XPSERVERLIST is not defined? It
should be defined when the X session starts up, due to
/etc/X11/Xsession.d/92xprint-xpserverlist. Is this script not being
invoked for you?  Which  X login manager do you use (gdm, xdm) ?

Whether firefox should check XPSERVERLIST explicitly itself as done in
your patch, or whether it should leave it up to the X session (the
normal situation), as a question for Eric to decide :)

Drew



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#333099: please support xprint if it is installed

2005-10-10 Thread Vincent McIntyre
Package: mozilla-firefox
Version: 1.0.4-2sarge5
Severity: normal


Hi

we run our systems with plain old 'lpr' as the print subsystem, so
we rely on the xprint package for printing direct from the browser
to the printer of choice (it's possible you want to print some things
to a b/w printer, and others to a colour one).

In Sarge's mozilla-browser, (in the File-Print dialog) I am able to
select from a long list of printers while in mozilla-firefox there is
only one option, Postscript/Default (or print-to-file).

Print to file does work, and so does Postscript/Default, if I have
$PRINTER set. But why should mozilla-browser and mozilla-firefox be
inconsistent about xprint support?

I understand the need to shut up the warnings that generated #279858.
But doesn't it make more sense for the /usr/bin/firefox script to test
for Xprint and use it if it is installed, since most likely the user
has installed it so it _can_ be used. n'est ce pas?

Below is a suggested patch. It avoids addressing whether printing will
actually work or not, just turns on Xprint if it is installed.

Would it be possible to have this applied to the sarge version as well
as unstable? It's really quite irritating.

I was also a bit confused by the course of events. If the intention is
actively to deprecate Xprint in favour of mozilla's internal postscript
support, it would also be helpful to explain that. I've had a go at an
update to /usr/share/doc/mozilla-firefox/README.Debian.gz, that just
recounts the history and what is likely to happen with the various
print subsystems. It needs work.

   Printing
   
   Sometime around /MM support for postscript printing in mozilla
   was disabled. To enable printing from mozilla, support was added for
   the Xprint printing service. Support for postscript printing in
   mozilla was reenabled in late 2004, and using Xprint for printing
   is no longer necessary.

   If the Xprint package is installed, it will be used.
   If you are using lpd-related print services, just set $PRINTER
   appropriately before starting firefox and choose the
   Postscript/Default option in the printer menu.
   If you are using the CUPS printing serviceFIXME


--- snip -
--- /usr/bin/firefox.orig   2005-10-10 20:06:07.233385000 +1000
+++ /usr/bin/firefox2005-10-10 20:46:07.209560233 +1000
@@ -102,16 +102,15 @@
 
 export LD_LIBRARY_PATH
 
-# Set XPSERVERLIST if not set yet for XPrint support, or complain.
+# If XPrint is installed, enable firefox to use it by setting XPSERVERLIST
 
-#if [ -z ${XPSERVERLIST} ]; then
-#if [ -x /etc/init.d/xprint ]; then
-#XPSERVERLIST=`/etc/init.d/xprint get_xpserverlist`
-#export XPSERVERLIST
-#else
-#echo -e Warning: \${XPSERVERLIST} not set and /etc/init.d/xprint not 
found;\nprinting will not work.\nPlease install the xprt-xprintorg package 2
-#fi  
-#fi
+if [ -z ${XPSERVERLIST} ]; then
+if [ -x /etc/init.d/xprint ]; then
+XPSERVERLIST=`/etc/init.d/xprint get_xpserverlist`
+   if [ 1 = $DEBUG ] ; then echo DEBUG: enabling Xprint support; fi
+export XPSERVERLIST
+fi  
+fi
 
 verbose () {
 if [ ${VERBOSE} ]; then
--- snip -

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages mozilla-firefox depends on:
ii  debianutils2.8.4 Miscellaneous utilities specific t
ii  fontconfig 2.3.1-2   generic font configuration library
ii  libatk1.0-01.8.0-4   The ATK accessibility toolkit
ii  libc6  2.3.2.ds1-22  GNU C Library: Shared libraries an
ii  libfontconfig1 2.3.1-2   generic font configuration library
ii  libfreetype6   2.1.7-2.4 FreeType 2 font engine, shared lib
ii  libgcc11:3.4.3-13GCC support library
ii  libglib2.0-0   2.6.4-1   The GLib library of C routines
ii  libgtk2.0-02.6.4-3   The GTK+ graphical user interface 
ii  libidl00.8.5-1   library for parsing CORBA IDL file
ii  libjpeg62  6b-10 The Independent JPEG Group's JPEG 
ii  libkrb53   1.3.6-2sarge2 MIT Kerberos runtime libraries
ii  libpango1.0-0  1.8.1-1   Layout and rendering of internatio
ii  libpng12-0 1.2.8rel-1PNG library - runtime
ii  libstdc++5 1:3.3.5-13The GNU Standard C++ Library v3
ii  libx11-6   4.3.0.dfsg.1-14sarge1 X Window System protocol client li
ii  libxext6   4.3.0.dfsg.1-14sarge1 X Window System miscellaneous exte
ii  libxft22.1.7-1   FreeType-based font drawing librar
ii  libxp6 4.3.0.dfsg.1-14sarge1 X Window System printing