[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#229255: marked as done (xprt-common: default printer)



Your message dated Fri, 6 Jun 2008 22:40:15 +0100
with message-id <200806062140.m56LeFog009464@kmos.homeip.net>
and subject line xprint-common has been removed from Debian, closing #263541
has caused the Debian Bug report #263541,
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 owner@bugs.debian.org
immediately.)


-- 
263541: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=263541
Debian Bug Tracking System
Contact owner@bugs.debian.org 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 ---
Version: 1:1.1.99.3+git20060910-9+rm

The xprint-common package has been removed from Debian testing, unstable and
experimental, so I am now closing the bugs that were still opened
against it.

For more information about this package's removal, read
http://bugs.debian.org/xprint . That bug might give the reasons why
this package was removed, and suggestions of possible replacements.

Don't hesitate to reply to this mail if you have any question.

Thank you for your contribution to Debian.

--
Marco Rodrigues
http://Marco.Tondela.org


--- End Message ---

Reply to: