diff options
author | Marco Peereboom <marco@conformal.com> | 2012-07-03 12:01:21 -0500 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2012-07-03 12:01:32 -0500 |
commit | a7d462490866cc2da4b395f3afac9e54f92eb1e3 (patch) | |
tree | 834b5e17130a55927ef3ff0a576f23bd72a82770 /xombrero.c | |
parent | 86643c79785a5b3bf5461aa7c13f049e136e4931 (diff) | |
download | xombrero-a7d462490866cc2da4b395f3afac9e54f92eb1e3.tar.gz |
add PSC and only set defaults if not set yet
Diffstat (limited to 'xombrero.c')
-rw-r--r-- | xombrero.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/xombrero.c b/xombrero.c index 674beaf..6af1bb9 100644 --- a/xombrero.c +++ b/xombrero.c @@ -1400,7 +1400,7 @@ expand_tilde(char *path, size_t len, const char *s) } ++s; - for (i = 0; s[i] != '/' && s[i] != '\0'; ++i) + for (i = 0; s[i] != PSC && s[i] != '\0'; ++i) user[i] = s[i]; user[i] = '\0'; s = &s[i]; @@ -8280,10 +8280,12 @@ main(int argc, char **argv) stylesheet = g_strdup(userstyle); /* set statically allocated (struct special) settings */ - expand_tilde(default_script, sizeof default_script, - XT_DS_DEFAULT_SCRIPT); - expand_tilde(ssl_ca_file, sizeof ssl_ca_file, - XT_DS_SSL_CA_FILE); + if (strlen(default_script) == 0) + expand_tilde(default_script, sizeof default_script, + XT_DS_DEFAULT_SCRIPT); + if (strlen(ssl_ca_file) == 0) + expand_tilde(ssl_ca_file, sizeof ssl_ca_file, + XT_DS_SSL_CA_FILE); /* soup session */ session = webkit_get_default_session(); |