Skip to content

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

Open
@sproket

Description

@sproket

I'm submitting a…

  • 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:
    • Maven
    • Gradle

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions