libXDGdirs v1.1.1-2-g54a653b
An implementation of XDG Base Directory Specification
Loading...
Searching...
No Matches

Base directories to which user-specific files should be written. More...

Functions

const char * xdgDataHome (void)
 Value of $XDG_DATA_HOME.
 
const char * xdgStateHome (void)
 Value of $XDG_STATE_HOME.
 
const char * xdgConfigHome (void)
 Value of $XDG_CONFIG_HOME.
 
const char * xdgCacheHome (void)
 Value of $XDG_CACHE_HOME.
 
const char * xdgRuntimeDir (void)
 Value of $XDG_RUNTIME_DIR.
 

Detailed Description

Function Documentation

◆ xdgCacheHome()

const char * xdgCacheHome ( void  )

Base directory for user-specific non-essential data files (analogous to /var/cache)

Returns
a path as described by the standards or NULL
Examples
print.c.

◆ xdgConfigHome()

const char * xdgConfigHome ( void  )

Base directory for user-specific configuration files (analogous to /etc)

Returns
a path as described by the standards or NULL
Examples
print.c.

◆ xdgDataHome()

const char * xdgDataHome ( void  )

Base directory for user-specific data files (analogous to /usr/share)

Returns
a path as described by the standards or NULL
Examples
print.c.

◆ xdgRuntimeDir()

const char * xdgRuntimeDir ( void  )

Base directory for user-specific non-essential runtime files (including file objects such as sockets and named pipes)

Returns
a path as described by the standards or NULL
Examples
print.c.

◆ xdgStateHome()

const char * xdgStateHome ( void  )

Base directory for user-specific state files

Returns
a path as described by the standards or NULL