command line. Defaults to "about:blank".
LARIZA_USER_AGENT
- Lariza will identify itself with this string. See source code
- for the default value.
+ Lariza will identify itself with this string. Uses WebKit's
+ default value if unset.
LARIZA_ZOOM
Zoom level for WebKit viewports. Defaults to 1.0.
static gchar *search_text = NULL;
static gboolean show_all_requests = FALSE;
static gboolean tabbed_automagic = TRUE;
-static gchar *user_agent = "Mozilla/5.0 (X11; U; Unix; en-US) "
- "AppleWebKit/537.15 (KHTML, like Gecko) "
- "Chrome/24.0.1295.0 "
- "Safari/537.15 "__NAME_CAPITALIZED__"/git";
+static gchar *user_agent = NULL;
void
language_is_set = TRUE;
}
- /*
- g_object_set(G_OBJECT(webkit_web_view_get_settings(WEBKIT_WEB_VIEW(c->web_view))),
- "user-agent", user_agent, NULL);
- */
+ if (user_agent != NULL)
+ g_object_set(G_OBJECT(webkit_web_view_get_settings(WEBKIT_WEB_VIEW(c->web_view))),
+ "user-agent", user_agent, NULL);
c->scroll = gtk_scrolled_window_new(NULL, NULL);