From owner-freebsd-questions@FreeBSD.ORG Thu Jan 27 21:48:50 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D4501065694 for ; Thu, 27 Jan 2011 21:48:50 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 3BFDA8FC0A for ; Thu, 27 Jan 2011 21:48:50 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.4/8.14.4) with ESMTP id p0RLmnnv060301; Thu, 27 Jan 2011 14:48:49 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.4/8.14.4/Submit) with ESMTP id p0RLmnKe060298; Thu, 27 Jan 2011 14:48:49 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 27 Jan 2011 14:48:49 -0700 (MST) From: Warren Block To: Bahman Kahinpour In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (wonkity.com [127.0.0.1]); Thu, 27 Jan 2011 14:48:49 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: Printing from inside the applications in FreeBSD 8.1 with CUPS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2011 21:48:50 -0000 On Thu, 27 Jan 2011, Bahman Kahinpour wrote: > After a lot of work, I managed to get my printer work with CUPS with > appropriate filters. Now, I can print the test page using > http://localhost:631 and also I can print any postscript file from > command-line. > > cat ~/MyPostscriptFile.ps | /usr/local/bin/lp UUOC: % /usr/local/bin/lp ~/MyPostscriptFile.ps > Note that I can not print using simple "lp" command as there a "lp" in > /bin/lp. How can I print from inside the applications? Take Firefox or > gedit for instance. How can I print from those apps using File>Print > menu? I need to add stuff to those dialogs which open from File>Menu. CUPS chose to use identical names for their printing commands. Sometimes people delete the system lpr (/usr/bin/lpr) so that only the CUPS version is found, or link one to the other. The system lpr will come back if you rebuild the system, unless you take other actions. The CUPS article talks about this near the end: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/cups/index.html There may also be options in your "desktop environment" preferences to select which printing system will be used.