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);
|
std::string filename = lyricsFilename(m_song);
|
||||||
if (Config.use_console_editor)
|
if (Config.use_console_editor)
|
||||||
{
|
{
|
||||||
command = "/bin/sh -c \"" + Config.external_editor + " \\\"" + filename + "\\\"\"";
|
command = Config.external_editor + " '" + filename + "'";
|
||||||
NC::pauseScreen();
|
NC::pauseScreen();
|
||||||
res = system(command.c_str());
|
res = system(command.c_str());
|
||||||
NC::unpauseScreen();
|
NC::unpauseScreen();
|
||||||
|
|||||||
Reference in New Issue
Block a user