6
#include <libnotify/notify.h>
8
#include "update-notifier.h"
13
NotifyNotification *n;
15
/* Create and show the notification */
16
n = notify_notification_new (_("Network service discovery disabled"),
17
_("Your current network has a .local "
18
"domain, which is not recommended "
19
"and incompatible with the Avahi "
20
"network service discovery. The service "
23
GTK_STOCK_DIALOG_INFO);
24
notify_notification_set_timeout (n, 60000);
25
notify_notification_show (n, NULL);
35
notify_init("update-notifier");
36
setlocale (LC_ALL, "");
37
bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
38
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
39
textdomain(GETTEXT_PACKAGE);
40
if (g_file_test ("/run/avahi-daemon/disabled-for-unicast-local", G_FILE_TEST_EXISTS)) {