harmattan version.
[monky] / data / LoadAll.lua
diff --git a/data/LoadAll.lua b/data/LoadAll.lua
new file mode 100644 (file)
index 0000000..ca4c013
--- /dev/null
@@ -0,0 +1,30 @@
+do
+       package.path = "/etc/conky/?.lua" --loads all lua files from here
+       require 'text' --specify each one we really want again like this, text = text.lua
+       require 'graph'
+       require 'bargraph_eng'
+       require 'misc'
+       require 'luatraverse'
+       require 'strict'
+       require 'box'
+
+       --local count
+       
+       function conky_main() --conky will run this if you specified to load 'main' in the conf
+               conky_main_box()
+               conky_main_bars()
+               conky_main_graph()
+               conky_draw_text()
+               --collectgarbage(collect)
+               --local y = traverse.countreferences(deleteme)
+               --print (tostring(y))
+               --count = #(_G)
+               --local run = true
+               --io.output("/home/user/MyDocs/lua/lua.log")
+               --for n,v in pairs(_G) do
+               --      io.write (tostring(n)," ",tostring(v),"\n")
+               --end
+               --io.write (tostring(count))
+               --print (count)
+       end
+end
\ No newline at end of file