diff options
Diffstat (limited to 'extra/xfce4-smartbookmark-plugin/use-exo-open-instead-of-xfbrowser4.patch')
-rw-r--r-- | extra/xfce4-smartbookmark-plugin/use-exo-open-instead-of-xfbrowser4.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/extra/xfce4-smartbookmark-plugin/use-exo-open-instead-of-xfbrowser4.patch b/extra/xfce4-smartbookmark-plugin/use-exo-open-instead-of-xfbrowser4.patch deleted file mode 100644 index 254382182..000000000 --- a/extra/xfce4-smartbookmark-plugin/use-exo-open-instead-of-xfbrowser4.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- xfce4-smartbookmark-plugin-0.4.4/src/smartbookmark.c -+++ xfce4-smartbookmark-plugin-0.4.4/src/smartbookmark.c -@@ -75,18 +75,27 @@ XFCE_PANEL_PLUGIN_REGISTER_INTERNAL(smar - - static gboolean do_search(const char *url, const char *keyword) - { -+ gchar *argv[] = { "exo-open", "--launch", "WebBrowser", NULL, NULL }; -+ gchar *complete_url; -+ gboolean retval; -+ GError *error = NULL; -+ - DBG ("Do search"); -- gchar *execute; -- gboolean success; -- execute = g_strconcat("xfbrowser4 \"", url, NULL);//works better for me -- //execute = g_strconcat("x-www-browser \"", url, NULL); -- execute = g_strconcat(execute, keyword, NULL); -- execute = g_strconcat(execute, "\"", NULL); - -- success = exec_command(execute); -- g_free(execute); -+ complete_url = g_strconcat(url, keyword, NULL); -+ argv[3] = complete_url; -+ -+ retval = g_spawn_async(NULL, (gchar **)argv, NULL, -+ G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD, NULL, NULL, NULL, &error); -+ -+ g_free(complete_url); -+ -+ if (!retval) { -+ xfce_err("%s", error->message); -+ g_error_free(error); -+ } - -- return success; -+ return retval; - } |