From: Michael Orlitzky Date: Sat, 26 Oct 2019 15:16:10 +0000 (-0400) Subject: xfce4-hdaps-dialogs.c: prefer xdg-open to exo-open. X-Git-Tag: v1.0.0~7 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=0062dd83ce22be86d90c8f4320c6634650017069;p=xfce4-hdaps.git xfce4-hdaps-dialogs.c: prefer xdg-open to exo-open. There are two places we handle URLs in the plugin, and they were using different programs to open a URL. This commit makes them both use "xdg-open" instead of "exo-open". I have no idea if it lives up to the promise, but xdg-open is supposed to intelligently determine your desktop environment and then do The Right Thing; whereas exo-open is specific to XFCE. --- diff --git a/panel-plugin/xfce4-hdaps-dialogs.c b/panel-plugin/xfce4-hdaps-dialogs.c index 6a7fff9..4a995df 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);