]> gitweb.fluxo.info Git - awesompd.git/commitdiff
Moved cache to default awesome cache dir (thanks to nberth)
authorAlexander Yakushev <yakushev.alex@gmail.com>
Wed, 22 Jun 2011 13:45:02 +0000 (16:45 +0300)
committerAlexander Yakushev <yakushev.alex@gmail.com>
Wed, 22 Jun 2011 13:45:02 +0000 (16:45 +0300)
awesompd.lua

index 6a452ce8c5ea72bfcb16cb44f8a27b21ade210a8..042b4f696f6f6617bf6b3df0986cf4e48a2708f2 100644 (file)
@@ -501,11 +501,7 @@ function awesompd:wrap_output(text)
 end
 
 function awesompd:retrieve_cache()
-   if self.path_to_icons == "" then
-      self.filename = "jamendo_cache"
-   else
-      self.filename = self.path_to_icons .. "/jamendo_cache"
-   end
+   self.filename = awful.util.getdir ("cache").."/jamendo_cache"
    local bus = io.open(self.filename)
    if bus then
       for l in bus:lines() do