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 local localAppList
if Hostname == "HACKSTATION" then local desktopAppList = {
-- If on desktop do desktop things
localAppList = {
"wayvnc 0.0.0.0 --output=DP-1", "wayvnc 0.0.0.0 --output=DP-1",
} }
elseif Hostname == "mobile02" then local laptopApplist = {
-- If on laptop, do laptop things
localAppList = {
"way-edges", "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 end
for _, command in ipairs(localAppList) do for _, command in ipairs(localAppList) do