[Xfce4-commits] <midori:master> Render home in command line as ~ in about:version
Christian Dywan
noreply at xfce.org
Tue Nov 1 00:32:02 CET 2011
Updating branch refs/heads/master
to 90410efa5d32358ca8612b3b7530d54897574e43 (commit)
from 686fee50b7b147481d7c3a298ddd7669eb12e811 (commit)
commit 90410efa5d32358ca8612b3b7530d54897574e43
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Nov 1 00:29:31 2011 +0100
Render home in command line as ~ in about:version
midori/midori-view.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index 146591b..3d16b8e 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -3866,8 +3866,9 @@ midori_view_set_uri (MidoriView* view,
}
else if (!strcmp (uri, "about:") || !strcmp (uri, "about:version"))
{
- gchar** argument_vector = sokoke_get_argv (NULL);
- gchar* command_line = g_strjoinv (" ", argument_vector);
+ gchar* arguments = g_strjoinv (" ", sokoke_get_argv (NULL));
+ gchar* command_line = sokoke_replace_variables (
+ arguments, g_get_home_dir (), "~", NULL);
gchar* architecture, *platform;
const gchar* sys_name = midori_web_settings_get_system_name (
&architecture, &platform);
@@ -3916,6 +3917,7 @@ midori_view_set_uri (MidoriView* view,
platform, sys_name, architecture ? architecture : "", ident,
video_formats, netscape_plugins);
g_free (command_line);
+ g_free (arguments);
g_free (ident);
g_free (netscape_plugins);
g_free (video_formats);
More information about the Xfce4-commits
mailing list