X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=panel-plugin%2Fxfce4-hdaps-dialogs.c;h=5ac786051e2dfde205f0fc1b9b56e6a8ed8a2fb5;hb=e12029299b67c2f2391d12e0aa1b7ae2eb660b0f;hp=6a7fff98b41179baae678fb80975403af409794f;hpb=a6a355e5f1a8fcc4e46f10a1a828ffee3809e122;p=xfce4-hdaps.git diff --git a/panel-plugin/xfce4-hdaps-dialogs.c b/panel-plugin/xfce4-hdaps-dialogs.c index 6a7fff9..5ac7860 100644 --- a/panel-plugin/xfce4-hdaps-dialogs.c +++ b/panel-plugin/xfce4-hdaps-dialogs.c @@ -45,9 +45,8 @@ static void hdaps_configure_response(GtkWidget *dialog, HdapsPlugin *hdaps) { if (response == GTK_RESPONSE_HELP) { - /* Launch the user's web browser and direct them to - the plugin's webpage. */ - gboolean spawn_result = g_spawn_command_line_async("exo-open --launch WebBrowser " PLUGIN_WEBSITE, NULL); + /* Launch the user's web browser and direct them to the plugin webpage. */ + gboolean spawn_result = g_spawn_command_line_async("xdg-open " PLUGIN_WEBSITE, NULL); if (G_UNLIKELY(spawn_result == FALSE)) { g_warning(_("Unable to open the following url: %s"), PLUGIN_WEBSITE); @@ -204,15 +203,14 @@ void hdaps_configure(XfcePanelPlugin *plugin, static void hdaps_uri_handler(GtkAboutDialog *about, const gchar *uri, gpointer data) { - gchar *cmd; - cmd = g_strdup_printf("%s %s","xdg-open", uri); + gchar *cmd = g_strdup_printf("%s %s","xdg-open", uri); + gboolean spawn_result = g_spawn_command_line_async(cmd, NULL); - if (!g_spawn_command_line_async(cmd, NULL)) { - g_free(cmd); - cmd = g_strdup_printf("%s %s","xdg-open", uri); - g_spawn_command_line_async(cmd, NULL); + if (G_UNLIKELY(spawn_result == FALSE)) { + g_warning(_("Unable to open the following uri: %s"), uri); } + g_free(cmd); }