From a9255194193b04d599b9f0a64cde6b831dd7d916 Mon Sep 17 00:00:00 2001 From: B Stack Date: Fri, 10 Aug 2018 11:29:21 -0400 Subject: 10.3 --- zen/shell_execute.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'zen/shell_execute.h') diff --git a/zen/shell_execute.h b/zen/shell_execute.h index 43bede61..a0e5634b 100755 --- a/zen/shell_execute.h +++ b/zen/shell_execute.h @@ -68,6 +68,13 @@ void shellExecute(const Zstring& command, ExecutionType type) //throw FileError } } } + + +inline +void openWithDefaultApplication(const Zstring& itemPath) //throw FileError +{ + shellExecute("xdg-open \"" + itemPath + "\"", ExecutionType::ASYNC); // +} } #endif //SHELL_EXECUTE_H_23482134578134134 -- cgit