fix openLink on linux (#6161)

This commit is contained in:
Martín Fernández
2020-05-18 15:36:00 +02:00
committed by GitHub
parent 514ebd114e
commit 5704f63bfc

View File

@@ -56,7 +56,7 @@ local Device = Generic:new{
openLink = function(self, link)
local enabled, tool = getLinkOpener()
if not enabled or not tool or not link or type(link) ~= "string" then return end
return os.execute(tool.." '"..link.."'") == 0
return os.execute('LD_LIBRARY_PATH="" '..tool.." '"..link.."'") == 0
end,
}