diff --git a/src/common/config.py b/src/common/config.py index a3c90176b..434754546 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -256,6 +256,7 @@ class Config: 'subscribe_activity': [opt_bool, True], 'subscribe_tune': [opt_bool, True], 'attach_notifications_to_systray': [opt_bool, False, _('If True, notification windows from notification-daemon will be attached to systray icon.')], + 'check_idle_every_foo_seconds': [opt_int, 2, _('Choose interval between 2 checks of idleness.')], } __options_per_key = { diff --git a/src/gajim.py b/src/gajim.py index 27718dddf..8683dc183 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -3047,7 +3047,8 @@ class Interface: gobject.timeout_add(200, self.process_connections) else: gobject.timeout_add_seconds(2, self.process_connections) - gobject.timeout_add_seconds(10, self.read_sleepy) + gobject.timeout_add_seconds(gajim.config.get( + 'check_idle_every_foo_seconds'), self.read_sleepy) if __name__ == '__main__': def sigint_cb(num, stack):