/* Sarien - A Sierra AGI resource interpreter engine * Copyright (C) 1999-2001 Stuart George and Claudio Matsuoka * * $Id: path.c,v 1.2 2001/08/31 22:21:55 cmatsuoka Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; see docs/COPYING for further details. */ #include #include "sarien.h" #include "agi.h" int get_app_dir (char *app_dir, unsigned int size) { char *x; x = getenv (HOMEDIR); _D ("HOMEDIR = %s", x); if (x) { strncpy (app_dir, x, size); } else { x = getenv ("SARIEN"); _D ("SARIEN = %s", x); if (x) strncpy (app_dir, x, size); } _D ("app_dir = %s", app_dir); return x ? 0 : -1; } char* get_config_file (void) { return "sarien.conf"; }