From: Steven Luo Date: Thu, 17 Dec 2009 12:40:28 +0000 (-0800) Subject: Split up CONFIGFILE_LOC into CONFIGFILE_DIR and CONFIGFILE_NAME X-Git-Tag: v3.0rc1~9 X-Git-Url: http://git.maemo.org/git/?p=browser-switch;a=commitdiff_plain;h=423a6d1a2d0688e79dcce03f4126f4663ac65e73;hp=f2de63c6e0c4bd6dd0bd02b8953b9a4d06a0bcb0 Split up CONFIGFILE_LOC into CONFIGFILE_DIR and CONFIGFILE_NAME The config UI needs to be able to create CONFIGFILE_DIR if it doesn't exist, so make this easier on it. --- diff --git a/configfile.h b/configfile.h index b8be9e6..b2aec5d 100644 --- a/configfile.h +++ b/configfile.h @@ -26,8 +26,11 @@ #include #define DEFAULT_HOMEDIR "/home/user" -#define CONFIGFILE_LOC "/.config/browser-switchboard" -#define CONFIGFILE_LOC_OLD "/.config/browser-proxy" +#define CONFIGFILE_DIR "/.config/" +#define CONFIGFILE_NAME "browser-switchboard" +#define CONFIGFILE_NAME_OLD "browser-proxy" +#define CONFIGFILE_LOC CONFIGFILE_DIR CONFIGFILE_NAME +#define CONFIGFILE_LOC_OLD CONFIGFILE_DIR CONFIGFILE_NAME_OLD struct swb_config_line { /* Whether or not the line has been parsed */