summaryrefslogtreecommitdiff
path: root/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'os.h')
-rw-r--r--os.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/os.h b/os.h
index 48d67c3..3542ffe 100644
--- a/os.h
+++ b/os.h
@@ -155,5 +155,10 @@ int process_check_status(Process **process, ProcessExitInfo *info);
/// `*process` will be set to NULL.
void process_kill(Process **process);
+/// runs xdg-open or equivalent on the given path, which can be a URL.
+///
+/// returns `true` on success.
+bool open_with_default_application(const char *path);
+
#endif // OS_H_