|
|
|
|
@ -326,9 +326,10 @@ void Lyrics::edit() |
|
|
|
|
GNUC_UNUSED int res; |
|
|
|
|
std::string command; |
|
|
|
|
std::string filename = lyricsFilename(m_song); |
|
|
|
|
escapeSingleQuotes(filename); |
|
|
|
|
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(); |
|
|
|
|
@ -337,7 +338,7 @@ void Lyrics::edit() |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
command = "nohup " + Config.external_editor |
|
|
|
|
+ " \"" + filename + "\" > /dev/null 2>&1 &"; |
|
|
|
|
+ " '" + filename + "' > /dev/null 2>&1 &"; |
|
|
|
|
res = system(command.c_str()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|