From 9999a72d673df993948216b7ed79f9f77fc53f9d Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 5 Apr 2010 23:16:07 -0400 Subject: Fixed help hanging issue on Win32; core/ext/menu.lua --- core/ext/menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ext') diff --git a/core/ext/menu.lua b/core/ext/menu.lua index 49e46126..00afc946 100644 --- a/core/ext/menu.lua +++ b/core/ext/menu.lua @@ -319,7 +319,7 @@ local function open_webpage(url) if WIN32 then cmd = string.format('start "" "%s"', url) local p = io.popen(cmd) - if not p then error(l.MENU_BROWSER_ERROR..url) else p:close() end + if not p then error(l.MENU_BROWSER_ERROR..url) end else cmd = string.format(MAC and 'open "file://%s"' or 'xdg-open "%s" &', url) if os.execute(cmd) ~= 0 then error(l.MENU_BROWSER_ERROR..url) end -- cgit v1.2.3