Commit de2aa6c7 authored by Milan Crha's avatar Milan Crha

GNOME Shell doesn't show evolution-alarm-notification reminders

Workarounds GNOME/gnome-shell#500
parent 33590285
......@@ -3,6 +3,7 @@
# ********************************
set(autostartdir ${SYSCONF_INSTALL_DIR}/xdg/autostart)
set(desktopdir ${SHARE_INSTALL_PREFIX}/applications)
configure_file(org.gnome.Evolution-alarm-notify.desktop.in.in
org.gnome.Evolution-alarm-notify.desktop.in
......@@ -15,6 +16,11 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.gnome.Evolution-alarm-notify.deskt
DESTINATION ${autostartdir}
)
# To have GNOME Shell show the GNotification notifications from it; otherwise it ignores them
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.gnome.Evolution-alarm-notify.desktop
DESTINATION ${desktopdir}
)
# ********************************
# GSettings schemas
# ********************************
......
......@@ -34,7 +34,7 @@
#include "e-alarm-notify.h"
#define APPLICATION_ID "org.gnome.EvolutionAlarmNotify"
#define APPLICATION_ID "org.gnome.Evolution-alarm-notify"
struct _EAlarmNotifyPrivate {
ESourceRegistry *registry;
......@@ -247,6 +247,7 @@ e_alarm_notify_display (EAlarmNotify *an,
}
detailed_action = g_action_print_detailed_name ("app.show-reminders", NULL);
g_notification_set_default_action (notification, detailed_action);
g_notification_add_button (notification, _("Reminders"), detailed_action);
g_free (detailed_action);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment