We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52c5996 commit aaaa821Copy full SHA for aaaa821
src/main/java/ch/bildspur/postfx/pass/BasePass.java
@@ -51,10 +51,17 @@ private String getLibPath() {
51
int n1 = -1;
52
53
// read jar file name
54
- String jar = Paths.get(BasePass.class.getProtectionDomain()
+ String fullJarPath = BasePass.class.getProtectionDomain()
55
.getCodeSource()
56
.getLocation()
57
- .getPath()).getFileName().toString();
+ .getPath();
58
+
59
+ if (PApplet.platform == PConstants.WINDOWS) {
60
+ // remove leading /
61
+ fullJarPath = fullJarPath.substring(1);
62
+ }
63
64
+ String jar = Paths.get(fullJarPath).getFileName().toString();
65
66
n1 = path.indexOf(jar);
67
if (PApplet.platform == PConstants.WINDOWS) { //platform Windows
0 commit comments