aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar Barrucadu <mike@barrucadu.co.uk>2009-05-04 09:38:20 +0100
committerGravatar Barrucadu <mike@barrucadu.co.uk>2009-05-04 09:38:20 +0100
commit62d317e0d10e849c4ec358ce501ad4909b579cbb (patch)
tree23292ea45951e455b1d89b38be2896b8d40cb0bd /uzbl.c
parente9cfdd0f9cef05fe25201d493efa763ee13447d3 (diff)
Added KERNVER, ACH, and COMMIT variables to user agent.
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/uzbl.c b/uzbl.c
index 3037484..ae7c755 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -971,6 +971,9 @@ settings_init () {
strcpy(newagent, str_replace("%webkit-major%", itos(WEBKIT_MAJOR_VERSION), useragent));
strcpy(newagent, str_replace("%webkit-minor%", itos(WEBKIT_MINOR_VERSION), newagent));
strcpy(newagent, str_replace("%webkit-micro%", itos(WEBKIT_MICRO_VERSION), newagent));
+ strcpy(newagent, str_replace("%kernver%", KERNVER, newagent));
+ strcpy(newagent, str_replace("%arch%", ARCH, newagent));
+ strcpy(newagent, str_replace("%commit%", COMMIT, newagent));
useragent = malloc(1024);
strcpy(useragent, newagent);