From 0062dd83ce22be86d90c8f4320c6634650017069 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 26 Oct 2019 11:16:10 -0400 Subject: [PATCH] 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. --- panel-plugin/xfce4-hdaps-dialogs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.43.2