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