---
title: File Locations
description: A console-based XMPP client for power users.
sidebar:
  order: 13
---

## Base Directories

The XDG base directory specification is used for base configuration and data directories.

The environment variables _$XDG_CONFIG_HOME_ and _$XDG_DATA_HOME_ will be used and a directory named CProof will be created in each.

As per the specification, if _$XDG_CONFIG_HOME_ is not present or unset, _$HOME/.config_ will be used. If $XDG_DATA_HOME is not present or unset, *$HOME/.local/share\* will be used.

For the rest of this document the following names will be used:

_$CONFIG_HOME_ = _$XDG_CONFIG_HOME/profanity_

_$DATA_HOME_ = _$XDG_DATA_HOME/profanity_

## Configuration File

The main configuration file for CProof is stored at:

_$CONFIG_HOME/profrc_

## CProof Log File

The CProof log is at:

_$DATA_HOME/logs/profanity.log_

## Chat Logs Directory

If chat logging is enabled, chat logs will be stored in the following directory:

_$DATA_HOME/chatlogs_

A directory exists per account, and within each of these directories is a directory per contact containing dated logs.

If chat room logging is also enabled, a rooms directory will also be within the account directory.

## User Defined Themes Directory

User defined theme files are stored in the following directory:

_$CONFIG_HOME/themes_

## Accounts file

User accounts are stored in the following file:

_$DATA_HOME/accounts_

## Examples

Assuming a user is called `turing`, and default values for `$XDG_CONFIG_HOME` and `$XDG_DATA_HOME` are used, the following example shows where files are stored:

|                                                       |                    |
| ----------------------------------------------------- | ------------------ |
| /home/turing/.config/profanity/profrc                  | Configuration file |
| /home/turing/.config/profanity/themes/                 | Theme files        |
| /home/turing/.local/share/profanity/logs/profanity.log | Main log file      |
| /home/turing/.local/share/profanity/chatlogs/          | Chat logs          |
| /home/turing/.local/share/profanity/accounts           | Accounts file      |
