fixed null safety and added startup apps for mobile03
This commit is contained in:
@@ -7,16 +7,25 @@ local appList = {
|
||||
}
|
||||
|
||||
local localAppList
|
||||
if Hostname == "HACKSTATION" then
|
||||
-- If on desktop do desktop things
|
||||
localAppList = {
|
||||
local desktopAppList = {
|
||||
"wayvnc 0.0.0.0 --output=DP-1",
|
||||
}
|
||||
elseif Hostname == "mobile02" then
|
||||
-- If on laptop, do laptop things
|
||||
localAppList = {
|
||||
local laptopApplist = {
|
||||
"way-edges",
|
||||
}
|
||||
|
||||
if Hostname == "HACKSTATION" then
|
||||
-- If on desktop do desktop things
|
||||
localAppList = desktopAppList
|
||||
elseif Hostname == "mobile02" then
|
||||
-- If on laptop, do laptop things
|
||||
localAppList = laptopApplist
|
||||
elseif Hostname == "mobile03" then
|
||||
-- If on other laptop, do other laptop things
|
||||
localAppList = laptopApplist
|
||||
else
|
||||
-- Prevents null errors
|
||||
localAppList = { "echo placeholder" }
|
||||
end
|
||||
|
||||
for _, command in ipairs(localAppList) do
|
||||
|
||||
Reference in New Issue
Block a user