fixed null safety and added startup apps for mobile03

This commit is contained in:
2026-08-23 09:47:02 +01:00
parent 52e482df12
commit 0b03d3625b

View File

@@ -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