set linux path explicitly

This commit is contained in:
Craig Raw 2020-08-28 12:17:47 +02:00
parent 00db59c44f
commit 1ac264600a

View file

@ -217,7 +217,7 @@ public class Hwi {
inputStream = Hwi.class.getResourceAsStream("/external/windows/hwi.exe"); inputStream = Hwi.class.getResourceAsStream("/external/windows/hwi.exe");
tempExecPath = Files.createTempFile(TEMP_FILE_PREFIX, null); tempExecPath = Files.createTempFile(TEMP_FILE_PREFIX, null);
} else { } else {
inputStream = Hwi.class.getResourceAsStream("/external/" + platform.getPlatformId().toLowerCase() + "/hwi"); inputStream = Hwi.class.getResourceAsStream("/external/linux/hwi");
tempExecPath = Files.createTempFile(TEMP_FILE_PREFIX, null, PosixFilePermissions.asFileAttribute(ownerExecutableWritable)); tempExecPath = Files.createTempFile(TEMP_FILE_PREFIX, null, PosixFilePermissions.asFileAttribute(ownerExecutableWritable));
} }