mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
fixed exception on close when trying to create sketch.properties on
linux and mac
This commit is contained in:
@@ -990,9 +990,14 @@ public class PdeEditor extends Panel {
|
||||
// write sketch.properties
|
||||
try {
|
||||
URL url = getClass().getResource("buttons.gif");
|
||||
String urlstr = url.toString();
|
||||
urlstr = urlstr.substring(6, urlstr.lastIndexOf("/") + 1) +
|
||||
//String urlstr = url.toString();
|
||||
//System.out.println(url.getFile());
|
||||
//urlstr = urlstr.substring(6, urlstr.lastIndexOf("/") + 1) +
|
||||
//"sketch.properties";
|
||||
String urlstr = url.getFile();
|
||||
urlstr = urlstr.substring(0, urlstr.lastIndexOf("/") + 1) +
|
||||
"sketch.properties";
|
||||
|
||||
//System.out.println(urlstr);
|
||||
//System.exit(0);
|
||||
FileOutputStream output = new FileOutputStream(urlstr);
|
||||
|
||||
Reference in New Issue
Block a user