X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=textclient%2Fcommands.c;h=81fef751a9bc017b1b6c4c499292f6df9ebe6e7d;hp=cecbb4d1fa5d073e3263848785db50d243afee46;hb=0e1c5fb91c45cb36a2d89615196a62c74f6c320c;hpb=3ad568a2b76a63f74d6e697ef51abb2c9ae4d28e diff --git a/textclient/commands.c b/textclient/commands.c index cecbb4d1f..81fef751a 100644 --- a/textclient/commands.c +++ b/textclient/commands.c @@ -932,6 +932,10 @@ void load_command_set(void) snprintf(buf, sizeof buf, "%s/.citadelrc", getenv("HOME")); ccfile = fopen(buf, "r"); } + if (getenv("APPDIR") != NULL) { + snprintf(buf, sizeof buf, "%s/citadel.rc", getenv("APPDIR")); + ccfile = fopen(buf, "r"); + } if (ccfile == NULL) { ccfile = fopen(file_citadel_rc, "r"); }