From owner-freebsd-ports@FreeBSD.ORG Wed Apr 11 11:33:08 2007 Return-Path: X-Original-To: freebsd-ports@FreeBSD.ORG Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1BA3216A407 for ; Wed, 11 Apr 2007 11:33:08 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 93B9213C4B9 for ; Wed, 11 Apr 2007 11:33:07 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (iforgf@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l3BBX0Ct096357; Wed, 11 Apr 2007 13:33:05 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l3BBX0VR096355; Wed, 11 Apr 2007 13:33:00 +0200 (CEST) (envelope-from olli) From: Oliver Fromme Message-Id: <200704111133.l3BBX0VR096355@lurza.secnetix.de> To: Alexander@leidinger.net (Alexander Leidinger) Date: Wed, 11 Apr 2007 13:33:00 +0200 (CEST) In-Reply-To: <20070411125140.8uyf2g4kggg8k4og@webmail.leidinger.net> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 11 Apr 2007 13:33:05 +0200 (CEST) Cc: freebsd-ports@FreeBSD.ORG Subject: Re: Printing with Acrobat Reader X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2007 11:33:08 -0000 Alexander Leidinger wrote: > Oliver Fromme wrote: > > I've configured Adobe Reader to use "/usr/bin/lpr -Plaser" > > for printing ("laser" is the name of the printing queue for > > my PostScript printer). But when I try to print a document, > > I get the error message "/usr/bin/lpr not found". > > Try without the path... Interesting idea. I guess I didn't thought of that because the _default_ entry in Adobe Reader is "/usr/bin/lp". So I just tried adding an "r" to it, which failed. I think it would be desirable to have the Adobe Reader port work out of the box without _any_ change by the user. That's why I suggest having the port add a wrapper script as /compat/linux/usr/bin/lp. A simple one line script like this one should be sufficient: #!/bin/sh - exec /usr/bin/lpr "$@" Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I made up the term 'object-oriented', and I can tell you I didn't have C++ in mind." -- Alan Kay, OOPSLA '97