use single quote around keymap name

Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
This commit is contained in:
Vincent-FK 2021-04-28 22:14:14 +02:00
parent 67e0f34b93
commit 829e59b57e

View File

@ -122,10 +122,10 @@ bool Launcher::run(std::string collection, Item *collectionItem)
/* Create shell cmd */
std::string cmd = SHELL_CMD_MAPPING_ROM;
cmd += " \"" + selectedItemsPath + "\"";
cmd += " '" + selectedItemsPath + "'";
/* Log shell cmd */
Logger::write(Logger::ZONE_INFO, "Launcher", "Applying keymap rom: " + selectedItemsPath);
Logger::write(Logger::ZONE_INFO, "Launcher", "Applying keymap rom: \"" + selectedItemsPath + "\"");
printf("Applying keymap rom cmd: \"%s\"\n", cmd.c_str());
/* Launch shell cmd */