Browse Source

MacOS: Escaped " in the command line passed to anotherInstanceStarted

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
bd07014dcc
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_events/native/juce_mac_MessageManager.mm

+ 3
- 1
modules/juce_events/native/juce_mac_MessageManager.mm View File

@@ -235,8 +235,10 @@ private:
static String quotedIfContainsSpaces (NSString* file)
{
String s (nsStringToJuce (file));
s = s.unquoted().replace ("\"", "\\\"");
if (s.containsChar (' '))
s = s.quoted ('"');
s = s.quoted();
return s;
}


Loading…
Cancel
Save