began making the client AppImage-aware
[citadel.git] / textclient / commands.c
index cecbb4d1fa5d073e3263848785db50d243afee46..81fef751a9bc017b1b6c4c499292f6df9ebe6e7d 100644 (file)
@@ -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");
        }