aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/callbacks.c
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-11-29 17:35:43 -0700
committerGravatar Brendan Taylor <whateley@gmail.com>2010-11-29 17:35:43 -0700
commit349252c6d687f5a3852926d81ccf08987c1a09e9 (patch)
tree528bbf791caf41b94712e5bfdf64708f549bca03 /src/callbacks.c
parent518004933b6d110d2a6d140f86c759dd4e713607 (diff)
add UZBL_CONFIG, UZBL_PID, UZBL_XID, UZBL_FIFO, UZBL_SOCKT, UZBL_URL and UZBL_TITLE env variables
Diffstat (limited to 'src/callbacks.c')
-rw-r--r--src/callbacks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index f596472..2637810 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -411,6 +411,7 @@ title_change_cb (WebKitWebView* web_view, GParamSpec param_spec) {
uzbl.gui.main_title = title ? g_strdup (title) : g_strdup ("(no title)");
update_title();
send_event(TITLE_CHANGED, uzbl.gui.main_title, NULL);
+ g_setenv("UZBL_TITLE", uzbl.gui.main_title, TRUE);
}
void
@@ -436,6 +437,7 @@ load_status_change_cb (WebKitWebView* web_view, GParamSpec param_spec) {
g_free (uzbl.state.uri);
GString* newuri = g_string_new (webkit_web_frame_get_uri (frame));
uzbl.state.uri = g_string_free (newuri, FALSE);
+ g_setenv("UZBL_URL", uzbl.state.uri, TRUE);
send_event(LOAD_COMMIT, webkit_web_frame_get_uri (frame), NULL);
break;