diff options
author | B Stack <bgstack15@gmail.com> | 2018-08-10 11:29:21 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2018-08-10 11:29:21 -0400 |
commit | a9255194193b04d599b9f0a64cde6b831dd7d916 (patch) | |
tree | 8b975393f5b0f7b4403da85f5095ad57581178e5 /zen/shell_execute.h | |
parent | 10.2 (diff) | |
download | FreeFileSync-a9255194193b04d599b9f0a64cde6b831dd7d916.tar.gz FreeFileSync-a9255194193b04d599b9f0a64cde6b831dd7d916.tar.bz2 FreeFileSync-a9255194193b04d599b9f0a64cde6b831dd7d916.zip |
10.310.3
Diffstat (limited to 'zen/shell_execute.h')
-rwxr-xr-x | zen/shell_execute.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |