Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=xcmenu.git;a=commitdiff;h=fc7785cd88ffe52acad78377e2c55e81f2ba972b
commit fc7785cd88ffe52acad78377e2c55e81f2ba972b Author: James Buren <[email protected]> Date: Mon Jan 5 07:37:34 2009 -0600 xcmenu.c * extend pathing for themes directory diff --git a/xcmenu.c b/xcmenu.c index a600061..20d2451 100644 --- a/xcmenu.c +++ b/xcmenu.c @@ -4,6 +4,7 @@ #define FALSE 0 #define FERROR "No such file or directory: " #define PATH "/.xcmenu/" +#define THEME "themes/current/" /* include some essential header files */ #include <stdio.h> @@ -14,6 +15,7 @@ static char *home; static char path[BUFFER]; +static char theme[BUFFER]; /* define some functions */ @@ -50,10 +52,13 @@ static void init() if (!home) error("Failed to retrieve HOME environmental variable.",NULL); snprintf(path,sizeof(path),"%s%s",home,PATH); + snprintf(theme,sizeof(theme),"%s%s",path,THEME); if (!filechk(home)) error(FERROR,home); if (!filechk(path)) error(FERROR,path); + if (!filechk(theme)) + error(FERROR,theme); } /* stop defining functions */ _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
