mirror of
https://github.com/kepler155c/opus
synced 2025-10-20 18:27:40 +00:00
better startup
This commit is contained in:
@@ -463,9 +463,9 @@ end)
|
||||
local function startup()
|
||||
local hasError
|
||||
|
||||
if not Opus.loadExtensions() then
|
||||
hasError = true
|
||||
end
|
||||
--if not Opus.loadExtensions() then
|
||||
-- hasError = true
|
||||
--end
|
||||
|
||||
local overviewId = multishell.openTab({
|
||||
path = 'sys/apps/Overview.lua',
|
||||
|
@@ -1,11 +1,13 @@
|
||||
local parentShell = shell
|
||||
|
||||
shell = { }
|
||||
local sandboxEnv = { }
|
||||
local shell = { }
|
||||
|
||||
local sandboxEnv = setmetatable({ }, { __index = _G })
|
||||
for k,v in pairs(getfenv(1)) do
|
||||
sandboxEnv[k] = v
|
||||
end
|
||||
setmetatable(sandboxEnv, { __index = _G })
|
||||
sandboxEnv.shell = shell
|
||||
sandboxEnv.multishell = multishell or { }
|
||||
|
||||
requireInjector(getfenv(1))
|
||||
|
||||
@@ -66,7 +68,7 @@ function shell.run(...)
|
||||
result, err = os.run(Util.shallowCopy(sandboxEnv), path, unpack(args))
|
||||
end
|
||||
|
||||
if multishell then
|
||||
if multishell and multishell.getTitle then
|
||||
local title = 'shell'
|
||||
if #tProgramStack > 0 then
|
||||
title = fs.getName(tProgramStack[#tProgramStack])
|
||||
|
Reference in New Issue
Block a user