From 623906b15438ad3cabf72597f302de86fe77ab85 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 12 Dec 2016 01:09:12 +0100 Subject: [PATCH] Adjusted to use the new utils ShellProcess (no longer ends with newline) --- src/dorkbox/systemTray/util/ImageUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dorkbox/systemTray/util/ImageUtils.java b/src/dorkbox/systemTray/util/ImageUtils.java index 4e3fcef..d9c85c9 100644 --- a/src/dorkbox/systemTray/util/ImageUtils.java +++ b/src/dorkbox/systemTray/util/ImageUtils.java @@ -236,7 +236,7 @@ class ImageUtils { // should be: plasmashell 5.6.5 or something String s = "plasmashell "; if (output.contains(s)) { - String value = output.substring(output.indexOf(s) + s.length(), output.length() - 1); + String value = output.substring(output.indexOf(s) + s.length(), output.length()); // 1 = 16 // 2 = 32 @@ -282,7 +282,7 @@ class ImageUtils { // DEFAULT icon size is 16. HiDpi changes this scale, so we should use it as well. // should be: uint32 0 or something if (output.contains("uint32")) { - String value = output.substring(output.indexOf("uint")+7, output.length()-1); + String value = output.substring(output.indexOf("uint")+7, output.length()); trayScalingFactor = Integer.parseInt(value); // 0 is disabled (no scaling)