[Xfce4-commits] [xfce/exo] 01/02: Revert "Escape URIs for exo-open (bug 9912)"
noreply at xfce.org
noreply at xfce.org
Wed Aug 26 10:15:23 CEST 2015
This is an automated email from the git hooks/post-receive script.
bluesabre pushed a commit to branch master
in repository xfce/exo.
commit 4885a281d3a82bf8124f46ab6fb61401d89901da
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Wed Aug 26 04:11:03 2015 -0400
Revert "Escape URIs for exo-open (bug 9912)"
This reverts commit a2ac10b6b5c3378a46812a64f1afbbb22c38a8f9.
---
exo-open/main.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/exo-open/main.c b/exo-open/main.c
index 7524bdd..059fad4 100644
--- a/exo-open/main.c
+++ b/exo-open/main.c
@@ -307,7 +307,6 @@ exo_open_uri (const gchar *uri,
{
GFile *file;
gchar *scheme;
- gchar *escaped;
GFileInfo *file_info;
gboolean succeed = FALSE;
gboolean retval = FALSE;
@@ -331,15 +330,13 @@ exo_open_uri (const gchar *uri,
g_free (scheme);
#endif
- escaped = g_uri_escape_string (uri, G_URI_RESERVED_CHARS_ALLOWED_IN_PATH, TRUE);
- file = g_file_new_for_uri (escaped);
+ file = g_file_new_for_uri (uri);
scheme = g_file_get_uri_scheme (file);
/* try to launch common schemes for know preferred applications */
if (scheme != NULL && exo_open_uri_known_category (uri, scheme, &retval))
{
g_free (scheme);
- g_free (escaped);
return retval;
}
@@ -356,7 +353,7 @@ exo_open_uri (const gchar *uri,
g_debug ("file is directory, use filemanager");
#endif
/* directories should go fine with a file manager */
- retval = exo_open_launch_category ("FileManager", escaped);
+ retval = exo_open_launch_category ("FileManager", uri);
succeed = TRUE;
}
else
@@ -382,7 +379,7 @@ exo_open_uri (const gchar *uri,
if (executable == NULL
|| strcmp (executable, "exo-open") != 0)
{
- fake_list.data = (gpointer) escaped;
+ fake_list.data = (gpointer) uri;
fake_list.prev = fake_list.next = NULL;
/* launch it */
@@ -410,7 +407,7 @@ exo_open_uri (const gchar *uri,
/* found scheme, open in file manager */
if (strcmp (scheme, schemes[i]) == 0)
{
- retval = succeed = exo_open_launch_category ("FileManager", escaped);
+ retval = succeed = exo_open_launch_category ("FileManager", uri);
break;
}
}
@@ -429,13 +426,12 @@ exo_open_uri (const gchar *uri,
/* try ftp uris if the file manager/gio failed to recognize it */
if (scheme != NULL
&& (strcmp (scheme, "ftp") == 0 || strcmp (scheme, "ftps") == 0))
- retval = exo_open_launch_category ("WebBrowser", escaped);
+ retval = exo_open_launch_category ("WebBrowser", uri);
else
- retval = gtk_show_uri (NULL, escaped, 0, error);
+ retval = gtk_show_uri (NULL, uri, 0, error);
}
g_free (scheme);
- g_free (escaped);
if (!retval && error != NULL)
*error = err;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list