From cbcfe175e96ceb481677c1b0fee9853ee10a90b3 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 1 Sep 2011 21:43:39 +0000 Subject: [PATCH] Default to the "systray" plug-in when none is configured --- src/phone.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/phone.c b/src/phone.c index 9221e70..24d0687 100644 --- a/src/phone.c +++ b/src/phone.c @@ -506,8 +506,10 @@ static gboolean _new_idle(gpointer data) phone_show_system(phone, FALSE); phone_show_write(phone, FALSE); _idle_settings(phone); - if((plugins = config_get(phone->config, NULL, "plugins")) != NULL) - _idle_load_plugins(phone, plugins); + /* default to the "systray" plug-in if nothing is configured */ + if((plugins = config_get(phone->config, NULL, "plugins")) == NULL) + plugins = "systray"; + _idle_load_plugins(phone, plugins); /* try to go online */ memset(&event, 0, sizeof(event)); event.type = PHONE_EVENT_TYPE_STARTING;