diff options
Diffstat (limited to 'zen/shell_execute.cpp')
-rw-r--r-- | zen/shell_execute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/shell_execute.cpp b/zen/shell_execute.cpp index 63696568..c8779bb8 100644 --- a/zen/shell_execute.cpp +++ b/zen/shell_execute.cpp @@ -240,7 +240,7 @@ void zen::openWithDefaultApp(const Zstring& itemPath) //throw FileError const Zstring cmdTemplate = R"(xdg-open "%x")"; //doesn't block => no need for time out! const Zstring cmdLine = replaceCpy(cmdTemplate, Zstr("%x"), itemPath); - if (const auto [exitCode, output] = consoleExecute(cmdLine, std::nullopt /*timeoutMs*/); //throw SysError, (SysErrorTimeOut) + if (const auto& [exitCode, output] = consoleExecute(cmdLine, std::nullopt /*timeoutMs*/); //throw SysError, (SysErrorTimeOut) exitCode != 0) throw SysError(formatSystemError(utfTo<std::string>(cmdTemplate), replaceCpy(_("Exit code %x"), L"%x", numberTo<std::wstring>(exitCode)), output)); } |