From 8eaab964a0f5138bf77825acfed1d9f231051c19 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 6 Feb 2016 16:15:39 +1000 Subject: Create our home directories, if not already created. --- src/extantz/extantz.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/extantz') diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index f2c0a43..7a21aee 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c @@ -15,6 +15,18 @@ globals ourGlobals; //static char *myKey = "12345678-1234-4321-abcd-0123456789ab"; //static char *myName = "onefang rejected"; +static const char *dirs[] = +{ + ".cache", + ".cache/compiled", + ".cache/converted", + ".cache/sha1", + ".cache/types", + ".cache/unpacked", + ".download", + "inventory", + NULL +}; #if USE_LOVE @@ -586,10 +598,15 @@ static Eina_Bool _makeSkang(void *data) EAPI_MAIN int elm_main(int argc, char **argv) { GLData *gld = NULL; + char temp[PATH_MAX]; // Eina_Bool gotWebKit = elm_need_web(); // Initialise ewebkit if it exists, or return EINA_FALSE if it don't. logDom = HamrTime(argv[0], elm_main, logDom); + // Create our home directories, if not already created. + sprintf(temp, "%s/.SledjHamr", eina_environment_home_get()); + ecore_file_mksubdirs(temp, dirs); + /* Set the locale according to the system pref. * If you don't do so the file selector will order the files list in * a case sensitive manner -- cgit v1.1