aboutsummaryrefslogtreecommitdiff
path: root/src/backend-dbus
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-21 10:08:07 +0000
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-03-21 10:08:07 +0000
commit18ee0ceef82240863b3c0cb3b072ad4e36c30e4b (patch)
treea5fd8cf3b5d7398dc6e27279254256c84b2ed341 /src/backend-dbus
parentc393931619483e9b6fbf582a66b35093f11d201e (diff)
downloadayatana-indicator-session-18ee0ceef82240863b3c0cb3b072ad4e36c30e4b.tar.gz
ayatana-indicator-session-18ee0ceef82240863b3c0cb3b072ad4e36c30e4b.tar.bz2
ayatana-indicator-session-18ee0ceef82240863b3c0cb3b072ad4e36c30e4b.zip
src/backend-dbus/actions.c: Show warnings if no web browser is installed (for distro help and XFCE desktop help).
Diffstat (limited to 'src/backend-dbus')
-rw-r--r--src/backend-dbus/actions.c8
1 files changed, 8 insertions, 0 deletions
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()));
}