From 8497e6ade2ad6aa621cc4b9ac17d1fb66ce0f496 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 29 Sep 2010 13:26:09 +0200 Subject: [PATCH] rc.lua: Call launcher() with a string When awful.widget.launcher() is called with a string, it interprets it as the path to an image and tries to load it. So why should we do the work of calling image() ourselves if it can be done for us? ;) Signed-off-by: Uli Schlachter --- awesomerc.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 568ce70e1..0c7b84da4 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -64,7 +64,7 @@ mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesom } }) -mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon), +mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu }) -- }}}