From 6f9d8d635133ee06dbe73ca6dd3010a54bfc4d0f Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Thu, 16 Jan 2025 22:57:25 +0000 Subject: [PATCH] Add possible fix to desktop UIs (#2726) # Description Please provide a summary of the changes, including relevant motivation and context. Closes #(issue_number) ## Checklist - [ ] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [ ] I have performed a self-review of my own code - [ ] I have attached images of the change if it is UI based - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] If my code has heavily changed functionality I have updated relevant docs on [Stirling-PDFs doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) - [ ] My changes generate no new warnings - [ ] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only) --- build.gradle | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index e90ec8dfb1e..6ee40e95fbb 100644 --- a/build.gradle +++ b/build.gradle @@ -130,10 +130,13 @@ jpackage { "-DSTIRLING_PDF_DESKTOP_UI=true", "-Djava.awt.headless=false", "-Dapple.awt.UIElement=true", - "--add-opens", "java.base/java.lang=ALL-UNNAMED", - "--add-opens", "java.desktop/java.awt.event=ALL-UNNAMED", - "--add-opens", "java.desktop/sun.awt=ALL-UNNAMED" - + "--add-opens=java.base/java.lang=ALL-UNNAMED", + "--add-opens=java.desktop/java.awt.event=ALL-UNNAMED", + "--add-opens=java.desktop/sun.awt=ALL-UNNAMED", + "--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED", + "--add-opens=java.desktop/sun.awt.windows=ALL-UNNAMED", + "--add-opens=java.desktop/sun.lwawt=ALL-UNNAMED", + "--add-opens=java.desktop/sun.lwawt.macosx=ALL-UNNAMED" ]