! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfprint should allow the printcap location to be specified on build as either...
Status:
CLOSED: FIXED
Severity:
enhancement
Product:
Xfprint4
Component:
General

Comments

Description Jason Keltz 2005-03-01 14:58:43 CET
Currently, xfprint assumes /etc/printcap which is not always the case.  It would
be nice if the configure script would provide an option to specify either an
alternate location for printcap, or alternatively, a script.  The script, which
would, of course be optional, could, for example produce a printcap style list
of printers that the user has access to on the system as opposed to display
every printer.

Reproducible: Always
Steps to Reproduce:
1. 
2. 
3.
Comment 1 Jean-François Wauthy editbugs 2005-03-02 11:06:34 CET
i added a --with-printcap option to the ./configure allowing you to define the
path to the printcap file
Comment 2 Jason Keltz 2005-03-03 14:10:46 CET
unfortunately, does not work...

I did:

configure --with-printcap=/cs/local/share/LPRng/printcap

In config.h I see:

#define PRINTCAP_DIR "/cs/local/share/LPRng/printcap"

However, once I compile and everything is in place, when I start xfprint4, the
printer list is empty.

Comment 3 Jean-François Wauthy editbugs 2005-03-03 18:19:25 CET
it's normal, --with-printcap is used to pass the directory where the printcap
file is... i acknowledge it's not obvious... what's the better way for you ?
path to the printcap file or just its directory ?
Comment 4 Jason Keltz 2005-03-03 20:19:41 CET
I would personally prefer if the option specified the full path to the file
including the filename.  What if the file on the system is not called printcap?
Comment 5 Jean-François Wauthy editbugs 2005-03-04 14:59:40 CET
i agree with you, changes have been committed

Bug #818

Reported by:
Jason Keltz
Reported on: 2005-03-01
Last modified on: 2009-07-14

People

Assignee:
Jean-François Wauthy
CC List:
0 users

Version

Attachments

Additional information