changeset 9786:93a70718eb87 jdk-9+119

8157060: [Linux] sandboxed applications fail with AccessControlException Reviewed-by: flar
author kcr
date Mon, 16 May 2016 13:03:43 -0700
parents 4eb5d72cb72b
children e87be8f8254b e46176060120
files modules/graphics/src/main/java/com/sun/glass/ui/gtk/GtkApplication.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/gtk/GtkApplication.java	Mon May 16 09:14:33 2016 +0300
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/gtk/GtkApplication.java	Mon May 16 13:03:43 2016 -0700
@@ -111,7 +111,8 @@
             return Boolean.getBoolean("jdk.gtk.verbose");
         });
         if (PrismSettings.allowHiDPIScaling) {
-            overrideUIScale = getFloat("glass.gtk.uiScale", -1.0f, "Forcing UI scaling factor: ");
+            overrideUIScale = AccessController.doPrivileged((PrivilegedAction<Float>) () ->
+                    getFloat("glass.gtk.uiScale", -1.0f, "Forcing UI scaling factor: "));
         } else {
             overrideUIScale = -1.0f;
         }