Autodetect printers for "lp" printing system

NEW
Unassigned

Status

()

--
enhancement
13 years ago
9 years ago

People

(Reporter: yongtin, Unassigned)

Tracking

Trunk
Sun
Solaris
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.10) Gecko/20050823 Firefox/1.0.6

Hi guys,

I have compiled firefox 1.0.6 on Solaris without xprint support. But the only
printer that show up is "postscript/default"

I can get around that by supplying printer name in print.printer_list
preference. But now the thing is my user need to change the printer everytime
they print. 

So Here are my questions:
1) why, on Solaris, there is only the "Postscript/default" printer avaiable,
whereas on Linux it listed all the postscripts printers I have?
2) Is there a pref option / program / script / programic way / environment var
that can produce a dynamic printer list with the default printer on top or
pre-selected? 

Thanks for help.
yongtin

Reproducible: Always

Steps to Reproduce:
1. Compiled firefox on Solaris without xprint
2. Click "print..."
3. Only postscript/default Printer availible

Actual Results:  
Cannot list all my printers. 

Expected Results:  
See all my printers available
A way to set the default printer on the top of the printer_list / or move the
default printer to the top of the printer_list.
(Reporter)

Updated

13 years ago
Summary: Missing printer list for postscript printers. → Missing printer list for postscript printers on Solaris.
(Reporter)

Updated

13 years ago
OS: other → Solaris
(Reporter)

Updated

13 years ago
Hardware: Other → Sun

Comment 1

13 years ago
This is part of our local Mozilla start script:

# setup printer list
MOZILLA_POSTSCRIPT_PRINTER_LIST=`lpstat -a | cut -d ' ' -f 1 | sort | uniq |
xargs echo`
if echo $MOZILLA_POSTSCRIPT_PRINTER_LIST | /bin/egrep >/dev/null -v "_default";
then
        if [ -n "$LPDEST" ]; then
                PRDEFAULT=$LPDEST
        elif [ -n "$PRINTER" ]; then
                PRDEFAULT=$PRINTER
        else
                PRDEFAULT=`env LANG=C lpstat -d | cut -d ' ' -f 4`
        fi
        echo "No '_default' printer found, adding '$PRDEFAULT' to top of Mozilla
printer list"
        MOZILLA_POSTSCRIPT_PRINTER_LIST="$PRDEFAULT
$MOZILLA_POSTSCRIPT_PRINTER_LIST"
fi
export MOZILLA_POSTSCRIPT_PRINTER_LIST
Component: General → Printing
Product: Firefox → Core
Version: unspecified → Trunk

Updated

13 years ago
Assignee: nobody → printing
QA Contact: general → nobody

Comment 2

13 years ago
Ting, your linux system probably uses the CUPS package for printing. Mozilla can
autodetect printers with CUPS. There's currently no support for printer
autodetection for the classic lp or lpr printing systems.

<http://kb.mozillazine.org/PostScript_Module> describes how you can set up a
printer list through an environment variable or a preference.

I'm going to morph this into an RFE for lp autodetection. See also bug 240379
for some discussion of the issues, and bug 135695 about lpr autodetection.
Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Missing printer list for postscript printers on Solaris. → Autodetect printers for "lp" printing system
Assignee: printing → nobody
QA Contact: nobody → printing
You need to log in before you can comment on or make changes to this bug.