XtAppSetFallbackResources(3) XT FUNCTIONS XtAppSetFallbackResources(3)

# [NAME](#NAME)

XtAppSetFallbackResources - set fallback resources

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

void XtAppSetFallbackResources(XtAppContext *app\_context*, String* *specification\_list*);

# [ARGUMENTS](#ARGUMENTS)

[*app\_context*](#app_context)

Specifies the application context.

[*specification\_list*](#specification_list)

Specifies a NULL-terminated list of resource specifications to pre-load the database, or NULL.

# [DESCRIPTION](#DESCRIPTION)

Each entry in *specification\_list* points to a string in the format **XrmPutLineResource**. following a call to **XtAppSetFallbackResources**, when a resource database is being created for a particular screen and the Intrinsics are not able to find or read an application-specific class resource file and if *specification\_list* is not NULL the resource specification in *specification\_list* will be merged into the screen resource database in place of the application-specific class resource file. **XtAppSetFallbackResources** is not required to copy *specification\_list*; the caller must ensure that the contents of the list and the strings addressed by the list remain valid until all displays are initialized or until **XtAppSetFallbackResources** is called again. The value NULL for *specification\_list* removes any previous fallback resource specification for the application context. The intended use for fallback resources is to provide a minimal number of resources that will make the application usable (or at least terminate with helpful diagnostic messages) when some problem exists in finding and loading the application defaults file.

# [SEE ALSO](#SEE_ALSO)

*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

Document: XtAppSetFallbackResources(3) from libxt 1.3.1-r8 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
