1 '''apport package hook for conky
3 Collect conky conf file, conky user's conf file and any specified lua script
5 Copyright 2009 Cesare Tirabassi <norsetto@ubuntu.com>
9 from apport.hookutils import *
14 attach_conffiles(report, 'conky')
15 conkyrc_path = path.expanduser('~/.conkyrc')
16 if path.exists(conkyrc_path):
17 attach_file(report, conkyrc_path)
18 for file in re.findall("^lua_load\s+(.*?)$",
19 open(conkyrc_path).read(),
21 attach_file_if_exists(report, file)