Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Run from Login Window #526

Open
Uggbert opened this issue Oct 19, 2024 · 0 comments
Open

[FR] Run from Login Window #526

Uggbert opened this issue Oct 19, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Uggbert
Copy link

Uggbert commented Oct 19, 2024

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like
SwiftDialog v2.5.0 and above support running from the loginwindow. I would like erase-install to be able to display its progress windows from the login window - in our case we have a large number of lab devices (no filevault) and when we are upgrading macOS (erase > upgrade OS > software deployment) during hours of operation we would like our support staff to know this workflow is taking place without having to login to the device, while at the same time be able to spot any that are stuck or failing to progress.

This would require deployment of a LaunchAgent with something similar to below:

<plist version="1.0"> <dict> <key>OnDemand</key> <false/> <key>LaunchOnlyOnce</key> <true/> <key>ProgramArguments</key> <array> <string>/Library/Management/erase-install/erase-install.sh {$params}</string> </array> <key>LimitLoadToSessionType</key> <string>LoginWindow</string> <key>Label</key> <string>com.erase-install-login-window</string> </dict> </plist>

Describe alternatives you've considered
I have tried using outset with limited success - at the time this worked but only after you logged out of an active user session. During a cold boot it would not display the workflow but the launch agent would work as expected and erase install would run in the background. Simply modifying the super script to add --loginwindow to each of the defaults was enough. However much more testing would be required if the solution was to be 100% reliable. There was a found enhancement available for swift dialog to improve the detection of this loginwindow process but I have still been unable to achieve it.

@Uggbert Uggbert added the enhancement New feature or request label Oct 19, 2024
@Uggbert Uggbert changed the title [FR] [FR] Run from Login Window Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants