files.
- Hotkeys have been unified. It is now largely irrelevant whether the
location bar or the web view has focus.
+ - Lariza can be instructed to write each visited URI to a file.
v16.12 2016-12-24
[Fixed]
static Window embed = 0;
static gchar *fifo_suffix = "main";
static gdouble global_zoom = 1.0;
+static gchar *history_file = NULL;
static gchar *home_uri = "about:blank";
static gboolean initial_wc_setup_done = FALSE;
static GHashTable *keywords = NULL;
{
const gchar *t;
struct Client *c = (struct Client *)data;
+ FILE *fp;
t = webkit_web_view_get_uri(WEBKIT_WEB_VIEW(c->web_view));
gtk_entry_set_text(GTK_ENTRY(c->location), (t == NULL ? __NAME__ : t));
+
+ if (t != NULL && history_file != NULL)
+ {
+ fp = fopen(history_file, "a");
+ if (fp != NULL)
+ {
+ fprintf(fp, "%s\n", t);
+ fclose(fp);
+ }
+ else
+ perror(__NAME__": Error opening history file");
+ }
}
gboolean
if (e != NULL)
fifo_suffix = g_strdup(e);
+ e = g_getenv(__NAME_UPPERCASE__"_HISTORY_FILE");
+ if (e != NULL)
+ history_file = g_strdup(e);
+
e = g_getenv(__NAME_UPPERCASE__"_HOME_URI");
if (e != NULL)
home_uri = g_strdup(e);
\fBmain\fP. If you change this variable, you can launch several
independent cooperative instances of \fBlariza\fP.
.TP
+\fBLARIZA_HISTORY_FILE\fP
+If set, \fBlariza\fP will write each visited URI to that file. This path
+can point to a named pipe, but be aware that the browser will block
+until a reader at the other end of the pipe has read all pending data.
+.TP
\fBLARIZA_HOME_URI\fP
This URI will be opened by pressing the appropriate hotkeys
(\(lqhomepage\(rq or \(lqnew window\(rq) and if no URIs are specified on