JavaPackager icon indicating copy to clipboard operation
JavaPackager copied to clipboard

Some System properties seem to be ignored in final build prism.allowhidpi

Open sproket opened this issue 1 year ago • 4 comments

I'm submitting a…

  • [X] bug report
  • [ ] feature request
  • [ ] other

Short description of the issue/suggestion:

Setting the property prism.allowhidpi is ignored in final build

Steps to reproduce the issue/enhancement:

  • In Windows set display scale to 125%
  • Clone this repo: https://github.com/sproket/demo2
  • Run Launcher in IDE (launcher turns scaling off - scaling is off)
  • mvn clean
  • mvn install

check the target directory and run "demo.exe" Window will be scaled so the EXE is not seeing the System property

What is the expected behavior?

Window should not be scaled since we set System.setProperty("prism.allowhidpi", "false");

What is the current behavior?

Window scales.

Do you have outputs, screenshots, demos or samples which demonstrate the problem or enhancement?

What is the motivation / use case for changing the behavior?

It doesn't work.

Please tell us about your environment:

  • JavaPackager version:n1.7.6
  • OS version: Windows 11
  • JDK version: 22
  • Build tool:
    • [X] Maven
    • [ ] Gradle

sproket avatar Nov 02 '24 11:11 sproket