Initial version 1.8.0 with no maemo fixes
[monky] / debian / conky.py
diff --git a/debian/conky.py b/debian/conky.py
new file mode 100644 (file)
index 0000000..1704106
--- /dev/null
@@ -0,0 +1,21 @@
+'''apport package hook for conky
+
+Collect conky conf file, conky user's conf file and any specified lua script
+
+Copyright 2009 Cesare Tirabassi <norsetto@ubuntu.com>
+
+'''
+
+from apport.hookutils import *
+from os import path
+import re
+
+def add_info(report):
+       attach_conffiles(report, 'conky')
+        conkyrc_path = path.expanduser('~/.conkyrc')
+        if path.exists(conkyrc_path):
+            attach_file(report, conkyrc_path)
+            for file in re.findall("^lua_load\s+(.*?)$",
+                                   open(conkyrc_path).read(),
+                                   re.MULTILINE):
+                attach_file_if_exists(report, file)