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.
i added a --with-printcap option to the ./configure allowing you to define the path to the printcap file
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.
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 ?
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?
i agree with you, changes have been committed