From 878a41d3be13da2a654df74f2a35ea8b295c8a13 Mon Sep 17 00:00:00 2001 From: B Stack Date: Tue, 16 Oct 2018 17:33:51 -0400 Subject: 10.5 --- zen/shell_execute.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zen/shell_execute.h') diff --git a/zen/shell_execute.h b/zen/shell_execute.h index 0802fbcb..98824d70 100755 --- a/zen/shell_execute.h +++ b/zen/shell_execute.h @@ -39,7 +39,7 @@ void shellExecute(const Zstring& command, ExecutionType type) //throw FileError if (type == ExecutionType::SYNC) { //Posix ::system() - execute a shell command - const int rv = ::system(command.c_str()); //do NOT use std::system as its documentation says nothing about "WEXITSTATUS(rv)", ect... + const int rv = ::system(command.c_str()); //do NOT use std::system as its documentation says nothing about "WEXITSTATUS(rv)", etc... if (rv == -1 || WEXITSTATUS(rv) == 127) throw FileError(_("Incorrect command line:") + L"\n" + utfTo(command)); //http://linux.die.net/man/3/system "In case /bin/sh could not be executed, the exit status will be that of a command that does exit(127)" @@ -73,7 +73,7 @@ void shellExecute(const Zstring& command, ExecutionType type) //throw FileError inline void openWithDefaultApplication(const Zstring& itemPath) //throw FileError { - shellExecute("xdg-open \"" + itemPath + "\"", ExecutionType::ASYNC); // + shellExecute("xdg-open \"" + itemPath + '"', ExecutionType::ASYNC); // } } -- cgit