diff --git a/Applications.cfg b/Applications.cfg index a4489ab0..9cfa143d 100644 --- a/Applications.cfg +++ b/Applications.cfg @@ -4,7 +4,7 @@ url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/OS.lua", type="Script", forceDownload=true, - version=4.01, + version=4.02, }, { path="/MineOS/Pictures/MoonTouch.pic", diff --git a/OS.lua b/OS.lua index 2010d68e..4b6a0fdd 100755 --- a/OS.lua +++ b/OS.lua @@ -289,7 +289,7 @@ local function createOSWindow() MineOSInterface.safeLaunch(MineOSPaths.explorer, "-o", icon.path) end MineOSInterface.mainContainer.iconField.launchers.showContainingFolder = function(icon) - MineOSInterface.safeLaunch(MineOSPaths.explorer, "-o", fs.path(icon.shortcutPath)) + MineOSInterface.safeLaunch(MineOSPaths.explorer, "-o", fs.path(icon.shortcutPath or icon.path)) end MineOSInterface.mainContainer.iconField.launchers.showPackageContent = function(icon) MineOSInterface.safeLaunch(MineOSPaths.explorer, "-o", icon.path) @@ -368,7 +368,7 @@ local function createOSWindow() end end menu:addItem(MineOSCore.localization.showContainingFolder).onTouch = function() - MineOSInterface.safeLaunch(MineOSPaths.explorer, "-o", fs.path(icon.shortcutPath)) + MineOSInterface.safeLaunch(MineOSPaths.explorer, "-o", fs.path(icon.shortcutPath or icon.path)) end menu:addSeparator() menu:addItem(MineOSCore.localization.moveRight, indexOf >= #MineOSInterface.mainContainer.dockContainer.children - 1).onTouch = function()