Seif Lotfy has proposed merging lp:~zeitgeist/zeitgeist/bluebird_basedir into lp:~zeitgeist/zeitgeist/bluebird.
Requested reviews: Zeitgeist Framework Team (zeitgeist) For more details, see: https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird_basedir/+merge/69658 This is just a place holder. It should be merged once we are all happy with the results of this one file "constants.vala" -- https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird_basedir/+merge/69658 Your team Zeitgeist Framework Team is requested to review the proposed merge of lp:~zeitgeist/zeitgeist/bluebird_basedir into lp:~zeitgeist/zeitgeist/bluebird.
=== modified file 'src/constants.vala' --- src/constants.vala 2011-07-27 22:28:45 +0000 +++ src/constants.vala 2011-07-28 14:24:33 +0000 @@ -47,15 +47,20 @@ public const uint CACHE_SIZE = 0; public const string ZEITGEIST_DATA_FOLDER = "zeitgeist"; - public const string ZEITGEIST_DATABASE_FILENAME = "activity.sqlite"; public void initialize () { // FIXME: append "/zeitgeist" - BASE_DIRECTORY = Environment.get_user_data_dir (); + BASE_DIRECTORY = Environment.get_user_data_dir () + "/"+ ZEITGEIST_DATA_FOLDER; + // If directory does not exist create directory + if (!FileUtils.test (BASE_DIRECTORY, FileTest.IS_DIR)){ + File.new_for_path (BASE_DIRECTORY).make_directory (); + } DATA_PATH = Environment.get_variable ("ZEITGEIST_DATA_PATH"); - // FIXME: make sure paths exist + + stdout.printf("BASE_DIRECTORY = %s\n", BASE_DIRECTORY); + stdout.printf("DATA_PATH = %s\n", DATA_PATH); } } }
_______________________________________________ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp