[gnome-terminal] screen: Fix opening http-less URLs
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] screen: Fix opening http-less URLs
- Date: Fri, 12 Oct 2012 20:17:44 +0000 (UTC)
commit cbdd4decbad1e491b829a554feccce2f0892f96b
Author: Matt Kraai <kraai ftbfs org>
Date: Fri Oct 12 22:16:43 2012 +0200
screen: Fix opening http-less URLs
https://bugzilla.gnome.org/show_bug.cgi?id=685599
src/client.c | 6 ++++++
src/terminal-util.c | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/client.c b/src/client.c
index af14777..b0fb8d1 100644
--- a/src/client.c
+++ b/src/client.c
@@ -925,6 +925,12 @@ main (gint argc, gchar *argv[])
return WEXITSTATUS (exit_code);
else if (WIFSIGNALED (exit_code))
return 128 + (WTERMSIG (exit_code));
+ else if (WIFSTOPPED (exit_code))
+ return 128 + (WSTOPSIG (exit_code));
+ else if (WCOREDUMP (exit_code)) {
+ g_printerr ("Core dumped\n");
+ return 127;
+ }
else
return 127;
}
diff --git a/src/terminal-util.c b/src/terminal-util.c
index 469cd54..40de921 100644
--- a/src/terminal-util.c
+++ b/src/terminal-util.c
@@ -293,7 +293,7 @@ terminal_util_open_url (GtkWidget *parent,
switch (flavor)
{
case FLAVOR_DEFAULT_TO_HTTP:
- uri = g_strdup_printf ("http:%s", orig_url);
+ uri = g_strdup_printf ("http://%s", orig_url);
break;
case FLAVOR_EMAIL:
if (g_ascii_strncasecmp ("mailto:", orig_url, 7) != 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]