RFR: JDK-8275923: Override the LPR path using a system property
Phil Race
prr at openjdk.java.net
Tue Oct 26 19:57:08 UTC 2021
On Wed, 20 Oct 2021 20:38:17 GMT, Rolf van Kleef <duke at openjdk.java.net> wrote:
> On some select systems, the LPR binary may be placed elsewhere (for example at `/app/bin/lpr`). For that reason, we need to be able to override this value. This proposal also allows overriding the LP's path, as it could experience similar difficulties.
This needs a CSR since it introduces a new interface.
I also think we should consider if the hard coded path were always tried first and only if it doesn't exist would
we try the property ..
then we'd name the property appropriately, eg
-Dsun.print.lprFallbackCommand=/app/foo/lpr
"Command" not "Path".
I will also check with the team that assesses secure coding etc to ask what they think.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6052
More information about the client-libs-dev
mailing list