From 3a8df166cfff34c0b242295fe65054cb8b48634a Mon Sep 17 00:00:00 2001 From: cproudlock Date: Tue, 28 Jul 2026 18:09:12 -0400 Subject: [PATCH] geenforce: broaden kiosk startup sweep to match single-dash -kiosk and shopdb-URL launchers The prior sweep only matched '--kiosk'; the imaging installers (Inno GEAerospaceDashboardSetup / lobby) create Startup shortcuts with single-dash '-kiosk' pointing at /shopdb/shopfloor-dashboard, so they survived. Match any msedge/chrome Startup .lnk whose args contain -kiosk (one or two dashes) OR a shopdb kiosk URL (tsgwp00525 / /shopdb/ / shopfloor-dashboard). Unrelated Startup items are left untouched (VM-verified). --- plugins/geenforce/seed_display_scope.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/geenforce/seed_display_scope.py b/plugins/geenforce/seed_display_scope.py index 523d410..301deaf 100644 --- a/plugins/geenforce/seed_display_scope.py +++ b/plugins/geenforce/seed_display_scope.py @@ -156,7 +156,13 @@ Get-ChildItem -LiteralPath $startup -Filter '*.lnk' -ErrorAction SilentlyContinu else {{ try {{ $existing = $shell.CreateShortcut($_.FullName) - if ($existing.TargetPath -match 'msedge\\.exe$' -and $existing.Arguments -match '--kiosk') {{ $drop = $true }} + $isBrowser = $existing.TargetPath -match '(?i)(msedge|chrome)\\.exe$' + # -kiosk matches both '-kiosk' and '--kiosk'. Also catch any browser + # shortcut pointing at a shopdb kiosk URL (incl. the dead + # shopfloor-dashboard route + --app variants). + $kioskArgs = ($existing.Arguments -match '(?i)-kiosk') -or ` + ($existing.Arguments -match '(?i)tsgwp00525|/shopdb/|shopfloor-dashboard') + if ($isBrowser -and $kioskArgs) {{ $drop = $true }} }} catch {{}} }} if ($drop) {{ Remove-Item -LiteralPath $_.FullName -Force -ErrorAction SilentlyContinue }}