155b6a
--- evince-3.8.3/shell/ev-window.c
155b6a
+++ evince-3.8.3/shell/ev-window.c
155b6a
@@ -228,6 +228,9 @@ struct _EvWindowPrivate {
155b6a
 #endif
155b6a
 
155b6a
         guint presentation_mode_inhibit_id;
155b6a
+
155b6a
+	/* Send to */
155b6a
+	gboolean has_mailto_handler;
155b6a
 };
155b6a
 
155b6a
 #define EV_WINDOW_GET_PRIVATE(object) \
155b6a
@@ -456,7 +459,8 @@ ev_window_setup_action_sensitivity (EvWi
155b6a
 	ev_window_set_action_sensitive (ev_window, "FilePrint", has_pages && ok_to_print);
155b6a
 	ev_window_set_action_sensitive (ev_window, "FileProperties", has_document && has_properties);
155b6a
 	ev_window_set_action_sensitive (ev_window, "FileOpenContainingFolder", has_document);
155b6a
-	ev_window_set_action_sensitive (ev_window, "FileSendTo", has_document);
155b6a
+	ev_window_set_action_sensitive (ev_window, "FileSendTo",
155b6a
+					has_document && ev_window->priv->has_mailto_handler);
155b6a
 	ev_window_set_action_sensitive (ev_window, "ViewPresentation", has_document);
155b6a
 
155b6a
         /* Edit menu */
155b6a
@@ -7025,6 +7029,7 @@ ev_window_init (EvWindow *ev_window)
155b6a
 	GDBusConnection *connection;
155b6a
 	static gint window_id = 0;
155b6a
 #endif
155b6a
+	GAppInfo *app_info;
155b6a
 
155b6a
 	g_signal_connect (ev_window, "configure_event",
155b6a
 			  G_CALLBACK (window_configure_event_cb), NULL);
155b6a
@@ -7075,6 +7080,10 @@ ev_window_init (EvWindow *ev_window)
155b6a
 			  G_CALLBACK (activate_link_cb),
155b6a
 			  ev_window);
155b6a
 
155b6a
+	app_info = g_app_info_get_default_for_uri_scheme ("mailto");
155b6a
+	ev_window->priv->has_mailto_handler = app_info != NULL;
155b6a
+	g_clear_object (&app_info);
155b6a
+
155b6a
 	ev_window->priv->main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
155b6a
 	gtk_container_add (GTK_CONTAINER (ev_window), ev_window->priv->main_box);
155b6a
 	gtk_widget_show (ev_window->priv->main_box);