Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Wynn
purr-data
Commits
0d3c18f8
Commit
0d3c18f8
authored
Oct 10, 2017
by
Jonathan Wilkes
Browse files
fix an OSX preference loading bug by quoting the prefs file
parent
69e2a5af
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_file.c
View file @
0d3c18f8
...
...
@@ -326,7 +326,7 @@ static void sys_initloadpreferences(void)
// "path1" : "\/System\/Library\/Fonts" path1: /System/Library/Fonts
// }
snprintf
(
cmdbuf
,
MAXPDSTRING
,
"plutil -convert json -r -o - %s.plist "
"plutil -convert json -r -o -
\"
%s.plist
\"
"
"| sed -E "
"-e 's/[{}]//g' "
"-e 's/^ *
\"
(([^
\"
]|
\\\\
.)*)
\"
*: *
\"
(([^
\"
]|
\\\\
.)*)
\"
.*/
\\
1:
\\
3/' "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment