summaryrefslogtreecommitdiff
path: root/zen/shell_execute.h
diff options
context:
space:
mode:
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