summaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorPeter Rice <peter@peterrice.xyz>2019-08-05 20:22:55 -0400
committerPeter Rice <peter@peterrice.xyz>2019-08-05 20:22:55 -0400
commit2ff23ed71912a958f0ccd729d2a088aa660a71ea (patch)
treee642c8ac378b0cfc8333a92ff5aa9bcd463e742b /src/screens
parent81cb7a4f85287ce2671beca9023048f4de41ddf0 (diff)
Skip sh and pass filename in single quotes
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/lyrics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screens/lyrics.cpp b/src/screens/lyrics.cpp
index c4552610..dacfa7f4 100644
--- a/src/screens/lyrics.cpp
+++ b/src/screens/lyrics.cpp
@@ -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();