Movie Maker now handles spaces in the path (fixes #268)

This commit is contained in:
Ben Fry
2021-10-04 21:01:53 -04:00
parent 2ac5871c7d
commit f39f2ea478
2 changed files with 11 additions and 11 deletions

View File

@@ -6,6 +6,8 @@ import processing.app.Platform;
import javax.swing.*;
import java.awt.Component;
import java.io.*;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.text.NumberFormat;
import java.util.List;
import java.util.ArrayList;
@@ -27,6 +29,8 @@ class FFmpegEngine {
// Use the location of this jar to find the "tool" folder
String jarPath =
getClass().getProtectionDomain().getCodeSource().getLocation().getFile();
// https://github.com/processing/processing4/issues/268
jarPath = URLDecoder.decode(jarPath, StandardCharsets.UTF_8);
File toolFolder = new File(jarPath).getParentFile();
// Use that path to get the full path to our copy of the ffmpeg binary
String ffmpegName = Platform.isWindows() ? "ffmpeg.exe" : "ffmpeg";

View File

@@ -17,6 +17,11 @@ o key shortcuts broken on Katherine's laptop
o try with a clean user account
X double-check on other Big Sur machines (tried on VMware, was fine)
X worked after a reboot?
X "Massachusetts Institue of Technology" typo in loading screen
X https://github.com/processing/processing4/issues/254
X https://github.com/processing/processing4/issues/280 (duplicate)
X Movie Maker broken with spaces in path (converted to %20)
X https://github.com/processing/processing4/issues/268
contribs
@@ -37,17 +42,6 @@ _ https://github.com/processing/processing4/issues/240
beta 2
_ movie maker broken with spaces in path (converted to %20)
_ https://github.com/processing/processing4/issues/268
_ make the call on the launcher setting for Linux
_ https://github.com/processing/processing4/issues/247
_ "Massachusetts Institue of Technology" typo in loading screen
_ https://github.com/processing/processing4/issues/254
X https://github.com/processing/processing4/issues/280 (duplicate)
lots of work
_ Editor cursor position is offset to the right when display scaling >100%
_ https://github.com/processing/processing4/issues/226
@@ -170,6 +164,8 @@ _ https://github.com/processing/processing/issues/5848
_ or at least avoid the multiple
_ remove jai_imageio.jar from MovieMaker
_ also clean out the other unused class files and src
_ make the call on the launcher setting for Linux
_ https://github.com/processing/processing4/issues/247
decisions before final 4.0 release
_ can we compress jdk/Contents/Home/legal into a single zip?