aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/alarm-notify/alarm-queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/alarm-notify/alarm-queue.c')
-rw-r--r--calendar/gui/alarm-notify/alarm-queue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/calendar/gui/alarm-notify/alarm-queue.c b/calendar/gui/alarm-notify/alarm-queue.c
index d6fda7d37c..d1bc64b5d0 100644
--- a/calendar/gui/alarm-notify/alarm-queue.c
+++ b/calendar/gui/alarm-notify/alarm-queue.c
@@ -826,10 +826,9 @@ audio_notification (time_t trigger, CompQueuedAlarms *cqa,
url = icalattach_get_url (attach);
- if (url && *url) {
- gnome_sound_init ("localhost");
+ if (url && *url && g_file_test (url, G_FILE_TEXT_EXISTS))
gnome_sound_play (url); /* this sucks */
- } else
+ else
gdk_beep ();
}