diff --git a/README.md b/README.md index 8f6ed76ec5afe67b8febbef2636618661ad5a90d..14c5cd9b6afc5c35d8678bc35287f65f98aac0b8 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ mv xmppc ~/.local/bin/xmppc ## Files -- `~/.config/xmppc.conf` — account configuration. +- `~/.config/xmppc/config` — account configuration. - `~/.config/xmppc/AGENTS.md` — optional instructions for LLM agents using `xmppc`. @@ -66,7 +66,7 @@ pass show xmpp/example | xmppc --jid user@example.net --pwd - --mode roster list ``` Named accounts are probably nicer. `xmppc` reads them from -`~/.config/xmppc.conf`; the `[default]` account is used when neither `--account` +`~/.config/xmppc/config`; the `[default]` account is used when neither `--account` nor `--jid` is provided. ```ini @@ -259,7 +259,7 @@ xmppc agent-skill It prints an agent skill they should follow, the MAM cursor rules, and explains that agents should read `~/.config/xmppc/AGENTS.md` when it exists for -user-local instructions, but must not read `~/.config/xmppc.conf`. +user-local instructions, but must not read `~/.config/xmppc/config`. To install a proper agent skill that points back to the one embedded in your binary, run: diff --git a/src/main.c b/src/main.c index 37b39ea73f678246f4317f0aa437bfdf76521cd2..ef25af04105c4ca69b51701cbb535f2d43e45931 100644 --- a/src/main.c +++ b/src/main.c @@ -436,7 +436,7 @@ int main(int argc, char *argv[]) { // Loading config file config_file = g_key_file_new(); configfile = g_string_new( g_get_home_dir()); - g_string_append(configfile,"/.config/xmppc.conf"); + g_string_append(configfile,"/.config/xmppc/config"); gboolean configfilefound = g_key_file_load_from_file( config_file, configfile->str, @@ -584,7 +584,7 @@ static int _agent_skill_command(int argc, char *argv[]) { const char *skill_text = "Before sending or receiving, read ~/.config/xmppc/AGENTS.md if it exists; it\n" "contains the user's allowed accounts, preferred contacts, and local policy.\n" - "Never read, print, or expose ~/.config/xmppc.conf.\n" + "Never read, print, or expose ~/.config/xmppc/config.\n" "\n" "Commands:\n" " xmppc -a -m message chat \n" @@ -636,7 +636,7 @@ static int _agent_skill_command(int argc, char *argv[]) { "For installing or updating xmppc itself, see `references/installation.md`.\n"; const char *installation_doc = - "Do not print secrets, password commands, or `~/.config/xmppc.conf` while\n" + "Do not print secrets, password commands, or `~/.config/xmppc/config` while\n" "installing or testing. Runtime account policy belongs in\n" "`~/.config/xmppc/AGENTS.md`.\n" "\n"