LinuxCommandLibrary

appres

List application resource database values

SYNOPSIS

appres [-verbose] [program [server]]

PARAMETERS

-verbose
    Prints the resources found to standard error in addition to standard output.


DESCRIPTION

The appres command queries the X server resource database and prints application resources for a specified Xt-based program class. It is invaluable for developers debugging X11 applications using the X Toolkit Intrinsics (Xt), revealing fallback resources, custom X resources loaded via xrdb, and database entries. Specify the application's class name (not executable name) as the program argument. Without program, it lists all programs with resources. The optional server argument targets a specific X server; otherwise, it uses $DISPLAY. Output shows resource names, classes, and values, aiding in customization and troubleshooting resource hierarchies.

CAVEATS

Requires an X server with resource database; program must use Xt class name, not binary name. Limited to server-side database entries.

EXAMPLE

appres xclock
Lists resources for the xclock application class.

appres -verbose xterm :1
Verbose output from X server display :1.

HISTORY

Developed by the MIT X Consortium as part of X11 Release 4 (1989); maintained in Xorg for modern X11 systems.

SEE ALSO

xrdb(1), listres(1), editres(1), X(7)

Copied to clipboard