1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

Linux: Quote Bash command string in Process::openDocument() to prevent ampersands being treated as a control operator

This commit is contained in:
ed 2021-03-04 09:22:40 +00:00
parent 5a59c92b20
commit fe9493867e

View file

@ -203,7 +203,7 @@ bool Process::openDocument (const String& fileName, const String& parameters)
for (auto browserName : { "xdg-open", "/etc/alternatives/x-www-browser", "firefox", "mozilla",
"google-chrome", "chromium-browser", "opera", "konqueror" })
{
cmdLines.add (String (browserName) + " " + cmdString.trim());
cmdLines.add (String (browserName) + " " + cmdString.trim().quoted());
}
cmdString = cmdLines.joinIntoString (" || ");