Skip sh and pass filename in single quotes

This commit is contained in:
Peter Rice
2019-08-05 20:22:55 -04:00
parent 81cb7a4f85
commit 2ff23ed719

View File

@@ -328,7 +328,7 @@ void Lyrics::edit()
std::string filename = lyricsFilename(m_song);
if (Config.use_console_editor)
{
command = "/bin/sh -c \"" + Config.external_editor + " \\\"" + filename + "\\\"\"";
command = Config.external_editor + " '" + filename + "'";
NC::pauseScreen();
res = system(command.c_str());
NC::unpauseScreen();