summaryrefslogtreecommitdiff
path: root/zen/shell_execute.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2018-08-10 11:29:21 -0400
committerB Stack <bgstack15@gmail.com>2018-08-10 11:29:21 -0400
commita9255194193b04d599b9f0a64cde6b831dd7d916 (patch)
tree8b975393f5b0f7b4403da85f5095ad57581178e5 /zen/shell_execute.h
parent10.2 (diff)
downloadFreeFileSync-a9255194193b04d599b9f0a64cde6b831dd7d916.tar.gz
FreeFileSync-a9255194193b04d599b9f0a64cde6b831dd7d916.tar.bz2
FreeFileSync-a9255194193b04d599b9f0a64cde6b831dd7d916.zip
10.310.3
Diffstat (limited to 'zen/shell_execute.h')
-rwxr-xr-xzen/shell_execute.h7
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
bgstack15