sveinbjornt / Platypus

Create native Mac applications from command line scripts.
https://sveinbjorn.org/platypus
BSD 3-Clause "New" or "Revised" License
2.84k stars 171 forks source link

How to get the permission to capture the screen #280

Open xulihang opened 2 months ago

xulihang commented 2 months ago

I am bundling jre in the app to run a JavaFX GUI program with the following command:

java -jar ImageTrans.jar

I need to take a screenshot of the program. The system asks for permission. I granted it but it still cannot take the screenshot correctly.

Starting the program directly from the terminal and granting the permission works.