[Xfce4-commits] <midori:master> Introduce about:paths listing common locations
Christian Dywan
noreply at xfce.org
Thu Jul 19 21:16:02 CEST 2012
Updating branch refs/heads/master
to 2c77e2d1ddd0b88114050a14d0026ba89d7d997a (commit)
from 5998b6b0eabc7f75353cdaefec9a99e6f21f8bb9 (commit)
commit 2c77e2d1ddd0b88114050a14d0026ba89d7d997a
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Jul 19 20:08:06 2012 +0200
Introduce about:paths listing common locations
midori/midori-view.c | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index f434566..3e8eed2 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -4066,6 +4066,7 @@ static const gchar* valid_about_uris[] = {
"error:nodocs",
"http://.invalid",
"about:geolocation",
+ "about:paths",
};
static void
@@ -4357,6 +4358,24 @@ midori_view_set_uri (MidoriView* view,
list_geolocation (markup);
data = g_string_free (markup, FALSE);
}
+ else if (!strcmp (uri, "about:paths"))
+ {
+ gchar* res_dir = midori_app_find_res_filename ("");
+ gchar* lib_dir = midori_app_get_lib_path (PACKAGE_NAME);
+ gchar* tmp_dir = midori_view_get_tmp_dir ();
+ data = g_strdup_printf ("<body><h1>%s</h1>"
+ "<p>config: %s</p>"
+ "<p>res: %s</p>"
+ "<p>lib: %s</p>"
+ "<p>cache: %s</p>"
+ "<p>tmp: %s</p>"
+ "</body>",
+ uri, sokoke_set_config_dir (NULL), res_dir, lib_dir, g_get_user_cache_dir (), tmp_dir);
+ g_free (res_dir);
+ g_free (lib_dir);
+ g_free (tmp_dir);
+ katze_assign (view->uri, g_strdup (uri));
+ }
else if (!strcmp (uri, "about:") || !strcmp (uri, "about:version"))
{
gchar* arguments = g_strjoinv (" ", midori_app_get_command_line ());
More information about the Xfce4-commits
mailing list