diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2010-04-05 23:16:07 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2010-04-05 23:16:07 -0400 |
commit | 9999a72d673df993948216b7ed79f9f77fc53f9d (patch) | |
tree | 581fe494f2ffbc9c894f40873e37b542da05e5b8 /core/ext | |
parent | 6fe75a3f8fa0939bf2bcbea08b10c5f7d8cb7cc6 (diff) |
Fixed help hanging issue on Win32; core/ext/menu.lua
Diffstat (limited to 'core/ext')
-rw-r--r-- | core/ext/menu.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |