5
#include <libnotify/notify.h>
7
#include "update-notifier.h"
10
show_notification (void* data)
12
NotifyNotification *n;
14
/* Create and show the notification */
15
n = notify_notification_new (_("Network service discovery disabled"),
16
_("Your current network has a .local "
17
"domain, which is not recommended "
18
"and incompatible with the Avahi "
19
"network service discovery. The service "
22
GTK_STOCK_DIALOG_INFO);
23
notify_notification_set_timeout (n, 60000);
24
notify_notification_show (n, NULL);
31
avahi_disabled_check(void)
33
if (g_file_test (UNICAST_LOCAL_AVAHI_FILE, G_FILE_TEST_EXISTS)) {
34
/* Show the notification, after a delay so it doesn't look ugly
35
* if we've just logged in */
36
g_timeout_add(5000, (GSourceFunc)(show_notification), NULL);