libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
Functions
apps.h File Reference
#include <acfutils/types.h>
Include dependency graph for apps.h:

Go to the source code of this file.

Functions

bool_t lacf_open_URL (const char *url)
 

Detailed Description

The purpose of this module is to aggregate integration with 3rd party apps of the host OS.

Definition in file apps.h.

Function Documentation

◆ lacf_open_URL()

bool_t lacf_open_URL ( const char *  url)

Given a URL, attempts to open it in the host operating system's preferred web browser.

Parameters
urlA URL that can be passed on to a web browser.
Returns
B_TRUE if launching the browser succeeded, B_FALSE otherwise. This always succeeds on Windows. On macOS and Linux, this depends on the return value of the shell command (open on macOS and xdg-open on Linux).