diff --git a/cron-rest-eyes b/cron-rest-eyes index 02ea924..378d0e2 100755 --- a/cron-rest-eyes +++ b/cron-rest-eyes @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash export DISPLAY=:0 diff --git a/hours b/hours index 312a57f..738853c 100755 --- a/hours +++ b/hours @@ -112,7 +112,8 @@ def main(argv): f = open(LOG_FILE, 'r') for line in iter(f.readline, ''): if (re.search(r'gnome-screensaver.*unlocked.login.keyring', line) - or re.search(r'screen unlocked', line)): + or re.search(r'screen unlocked', line) + or re.search(r'gdm.session.*session.opened.for.user', line)): # found a login line dt = get_dt_from_log_line(line) idx = (dt.date() - monday).days