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:
parent
5a59c92b20
commit
fe9493867e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 (" || ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue