summaryrefslogtreecommitdiff
path: root/os.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-04 21:39:13 -0400
committerpommicket <pommicket@gmail.com>2023-08-04 21:42:53 -0400
commit49ab483be3e7af88a3932a43f222aa42cacd3515 (patch)
tree9ad0157a22ed6cd9c54458b6c75ffa7eaa2253e7 /os.h
parentce199f9384f9f9376417110574a07cfd731e3a79 (diff)
document links seem to be working
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_