~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/upgrade-notifier.c

  • Committer: mvo
  • Date: 2004-11-03 21:11:42 UTC
  • Revision ID: gustavo@niemeyer.net-20041103211142-13ae36f05465ce14
* debian/control,upgrade-notifier.cron.daily,rules: added cron-job
* src/upgrade-notifier.c,data/upgrade-app: use the system bus now 
                     (so that the cron job can send messages too)

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
        /* setup a dbus channel */
223
223
        loop = g_main_loop_new(NULL, FALSE);
224
224
        dbus_error_init(&error);
225
 
        bus = dbus_bus_get(DBUS_BUS_SESSION, &error);
 
225
        bus = dbus_bus_get(DBUS_BUS_SYSTEM, &error);
226
226
        if(!bus) {
227
227
           g_error("Failed to connect to D-BUS: %s",error.message);
228
228
           return 1;