From 18ee0ceef82240863b3c0cb3b072ad4e36c30e4b Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 21 Mar 2018 10:08:07 +0000 Subject: src/backend-dbus/actions.c: Show warnings if no web browser is installed (for distro help and XFCE desktop help). --- src/backend-dbus/actions.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c index 1b104cf..e3991fb 100644 --- a/src/backend-dbus/actions.c +++ b/src/backend-dbus/actions.c @@ -997,6 +997,10 @@ my_desktop_help (IndicatorSessionActions * self G_GNUC_UNUSED) browser = find_browser(); if (browser != NULL) run_outside_app(g_strdup_printf("%s '%s'", browser, "https://docs.xfce.org/")); + else + zenity_warning ("dialog-warning", + _("Warning"), + _("The XFCE desktop's user guide needs to be accessed with\na web browser.\n\nThe Ayatana Session Indicator could not find any web\nbrowser on your computer.")); } else zenity_warning ("dialog-warning", @@ -1014,6 +1018,10 @@ my_distro_help (IndicatorSessionActions * self G_GNUC_UNUSED) if (browser != NULL) run_outside_app(g_strdup_printf("%s '%s'", browser, get_distro_url())); + else + zenity_warning ("dialog-warning", + _("Warning"), + g_strdup_printf(_("Displaying information on %s requires\na web browser.\n\nThe Ayatana Session Indicator could not find any web\nbrowser on your computer."), get_distro_name())); } -- cgit v1.2.3