Фикс запуска ярлыка, который ссылается на файл с расширением, зависимым от System/Extensions

This commit is contained in:
Igor Timofeev 2018-09-14 10:21:14 +03:00
parent f7dacd6900
commit 00c0cac5b2

View File

@ -351,7 +351,11 @@ function MineOSInterface.iconLaunchers.corrupted(icon)
end end
function MineOSInterface.iconLaunchers.extension(icon) function MineOSInterface.iconLaunchers.extension(icon)
MineOSInterface.safeLaunch(MineOSCore.properties.extensionAssociations[icon.extension].launcher, icon.path, "-o") if icon.isShortcut then
MineOSInterface.safeLaunch(MineOSCore.properties.extensionAssociations[icon.shortcutExtension].launcher, icon.shortcutPath, "-o")
else
MineOSInterface.safeLaunch(MineOSCore.properties.extensionAssociations[icon.extension].launcher, icon.path, "-o")
end
end end
function MineOSInterface.iconLaunchers.script(icon) function MineOSInterface.iconLaunchers.script(icon)