Your message dated Fri, 16 Aug 2013 12:08:52 +0200
with message-id <[email protected]>
and subject line xprint is dead
has caused the Debian Bug report #229255,
regarding xprt-common: default printer
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
229255: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=229255
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xprt-common
Version: 0.0.9.cvs20040114-3
Severity: wishlist


As Xprint accessing printers through other printing systems which have the 
concept of a default printer, it would be nice if Xprint selected one of 
these as its default printer.  I couldn't find a means of setting the default 
printer other than by setting the env. var. XPRINTER.  Here's a crude patch 
to the /etc/X11/Xsession.d/ script to set XPRINTER from the output of 'lpstat 
-d'.  As most printing systems provide a BSD-lpr/lpd-compatible lpstat, I 
think this should work right for most people.

--- 92xprint-xpserverlist       2004-01-15 01:22:00.000000000 -0600
+++ mod 2004-01-23 15:34:52.000000000 -0600
@@ -27,4 +27,15 @@
   export XPSERVERLIST
 fi
 
+
+# If no defalt printer is defined, get default printer 
+# from lp system
+if [ -z "$XPRINTER" ]; then
+  if lpstat -d > /dev/null; then
+    PRINTER=`lpstat -d | sed -e 's/^[^:]\+: \(.*\)$/\1/'`
+    SERVER_ARRAY=( $XPSERVERLIST )
+    export XPRINTER="${PRINTER}@${SERVER_ARRAY[0]}"
+  fi
+fi
+
 ##########################         eof       #####################



-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux rincewind 2.4.24-1-686-smp #1 SMP Tue Jan 6 22:37:23 EST 2004 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages xprt-common depends on:
ii  debconf                       1.3.22     Debian configuration management sy

-- debconf information:
  xprt-common/remove_old_conffiles: true



--- End Message ---
--- Begin Message ---
Hi,

we haven't shipped the xprint package in a few years.  Closing this bug.

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to