In FormPreferences->Output->Printer, the "adapt output"
checkbox seems unclear. There are four cases here :

1) the user has entered a printer name, and
$PRINTER has a value. The user value should always override 
$PRINTER by  passing it to lpr.
                       
2) the user has entered a printer name, and $PRINTER is not
set. The user value should be passed to lpr.

3) the user has not entered a printer name, and
$PRINTER is set. There is no need to pass $PRINTER to lpr.

4) the user has not entered a printer name and $PRINTER is not set. 
There is nothing to pass to lpr.

So in summary it looks like we should only pass a value to
lpr if there is some printer name entered by the user.

As far as I can see, this applies to lyxrc as well. My lpr manpage says :

     -P Force output to a specific printer.  Normally, the default print­
             er is used (site dependent), or the value of the environment
             variable PRINTER is used

Are there lpr's out there for which this is *not* the case ?

If so, then the dialog entry should be filled with the contents of
$PRINTER unless set otherwise in lyxrc, and adapt_output should be dropped
from the GUI. This leaves the question of
whether to save $PRINTER back to lyxrc or not. I vote not.

If not, then adapt_output should be dropped completely IMHO.

thanks
john

Reply via email to