Skip sh and pass filename in single quotes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user