]> git.madduck.net Git - etc/awesome.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Change io.popen to io.open so we don't execute image files.
authorkurumushi <kurumushi@users.noreply.github.com>
Mon, 18 Nov 2013 16:16:36 +0000 (01:16 +0900)
committercopycat-killer <dada@archlinux.info>
Wed, 5 Aug 2015 11:30:31 +0000 (13:30 +0200)
widgets/yawn/init.lua

index 38b741a3c9b9c090d8982b9aa0bf660f344f252c..e7aa75d7a7abba07f33b8e4c0af5538708d561f9 100644 (file)
@@ -1,4 +1,3 @@
-
 --[[
                                                   
      Licensed under GNU General Public License v2 
 --[[
                                                   
      Licensed under GNU General Public License v2 
@@ -115,7 +114,7 @@ local function fetch_weather()
     sky = sky  .. forecast:gsub(" ", ""):gsub("/", "") .. ".png"
 
     -- In case there's no defined icon for current forecast
     sky = sky  .. forecast:gsub(" ", ""):gsub("/", "") .. ".png"
 
     -- In case there's no defined icon for current forecast
-    f = io.popen(sky)
+    f = io.open(sky)
     if f == nil then
         sky = icon_path .. "na.png"
     else
     if f == nil then
         sky = icon_path .. "na.png"
     else