Merge branch 'master' of ssh://holtrop.homelinux.com/files

This commit is contained in:
Josh Holtrop 2011-11-06 13:47:21 -05:00
commit ceb3b1effd
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
export DISPLAY=:0

3
hours
View File

@ -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