61 lines
2.0 KiB
HTML
61 lines
2.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
|
|
<TITLE>PATH HOWTO: Some examples</TITLE>
|
|
<LINK HREF="Path-12.html" REL=next>
|
|
<LINK HREF="Path-10.html" REL=previous>
|
|
<LINK HREF="Path.html#toc11" REL=contents>
|
|
</HEAD>
|
|
<BODY>
|
|
<A HREF="Path-12.html">Next</A>
|
|
<A HREF="Path-10.html">Previous</A>
|
|
<A HREF="Path.html#toc11">Contents</A>
|
|
<HR>
|
|
<H2><A NAME="s11">11. Some examples</A></H2>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<H2><A NAME="ss11.1">11.1 magicfilter</A>
|
|
</H2>
|
|
|
|
<P>
|
|
<P>magicfilter is a common tool to manipulate files for printer. It
|
|
analyzes the type of the file to be printed and invokes a filter
|
|
script to make appropriate pretty-printing. These scripts are invoked
|
|
from lpd that is started from /etc/init.d/lpd that is started from
|
|
init. Thus, the path is that of init. That does not contain
|
|
/usr/bin/X11!
|
|
<P>You might want to insert printing of PDF files to magicfilter. It is
|
|
possible to do this by using /usr/bin/X11/xpdf. Now you must remember
|
|
to insert full directory path to the file name because magicfilter
|
|
would not find it otherwise. Most programs used in magicfilter do not
|
|
need full path, because they are on /bin or /usr/bin.
|
|
<P>
|
|
<P>
|
|
<H2><A NAME="ss11.2">11.2 Printing from X applications</A>
|
|
</H2>
|
|
|
|
<P>
|
|
<P>
|
|
<P>You may use PRINTER environment variable to show what is the printer
|
|
that you are using. However, you may notice that in some cases in X
|
|
applications it is sometimes lost.
|
|
<P>You must remember that if the X session is started from XDM, the
|
|
window manager has never evaluated your shell login scripts. All the
|
|
X applications that you have started from xterm have your PRINTER
|
|
variable. However, if the same application is started from menu or
|
|
window manager button, it does not contain your PRINTER variable.
|
|
<P>In some cases this can be inherited to an even lower layer: for
|
|
example a Netscape helper application can have or have not your
|
|
PRINTER definition.
|
|
<P>
|
|
<P>
|
|
<HR>
|
|
<A HREF="Path-12.html">Next</A>
|
|
<A HREF="Path-10.html">Previous</A>
|
|
<A HREF="Path.html#toc11">Contents</A>
|
|
</BODY>
|
|
</HTML>
|