swiftDialog icon indicating copy to clipboard operation
swiftDialog copied to clipboard

Investigate running at the login window

Open bartreardon opened this issue 3 years ago • 8 comments

Had a request to see if we could get dialog running at the login window.

This is currently prevented because DNDPrefs lookup fails in that context

bartreardon avatar Jan 27 '22 00:01 bartreardon

Hi.

Just wondering how this is going? I'd like to have the ability to do fullscreen over the loginwindow (similar to jamfHelper). A bonus would be with dynamic text.

Cheers, Shannon

gimmickyboot avatar Oct 06 '22 02:10 gimmickyboot

low on the priority at the moment. sorting out the refactor for v2.0

bartreardon avatar Oct 06 '22 04:10 bartreardon

This feature request would be extremely useful for displaying content on/over the login screen with fully unattended machines (labs, classrooms, digital signage, etc.)

We are an .edu and running NoMAD Login AD strictly for its ability to have DEPNotify-style dialogs over the login window. This allows us to send a student worker out to a class or lab with a brand new machine. On first boot, the Nomad Login AD screen requests the computer name from the student worker, after which it displays the status of the computer's provisioning (and secures the computer until provisioning is complete).

Running SwiftDialog at the login screen would allow us to retire that product in favor of something more modern, like Setup Your Mac.

georgecm12 avatar Apr 19 '23 14:04 georgecm12

@georgecm12 can you clarify if you mean the login window or the setup assistant?

bartreardon avatar Apr 24 '23 12:04 bartreardon

@bartreardon Login Window.

Ideally, I would want to be able to have Jamf Pro tell the macOS to auto-advance through the setup assistant, then once it lands at the login window, display a Setup Your Mac screen over the login window without a user being logged in. That's the goal, at least! :)

georgecm12 avatar Apr 24 '23 13:04 georgecm12

A conversation I had reminded me of this feature request. Is there any chance of this happening, or is this not something that would ever be considered?

(A reminder of my requested use-case: I have unattended lab/classroom computers that I send an "erase all content and settings" command to. The computers would reboot, auto-advance through Setup Assistant, then in place of the login window, a Setup Your Mac screen displays to provide feedback as deployment tasks complete, without having to do a forced auto-login as a user to run SYM.)

There may be a suitable alternative forthcoming for me from another source, so it's not the end of the world if it isn't being considered.

georgecm12 avatar Dec 11 '23 22:12 georgecm12

Maybe but I'm not working on it. It likely won't work at all without a refactor of the code. As written, running at the login window and displaying a window is rather difficult.

bartreardon avatar Dec 11 '23 23:12 bartreardon

I worked on this tonight and have swiftDialog running at the login window. I can't take too much credit. I applied the logic of this post to swiftDialog and added a --loginwindow argument. It's about +20 lines including the help text.

I'm not sure of how to proceed from here.

  1. Would you like a pull request? If so, branched from which branch?
  2. I'm not sure how this feature should interact with other features

A login window screen shot: LWScreenShot 2024-01-26 at 9 51 13 PM

fraserhess avatar Jan 27 '24 05:01 fraserhess

@fraserhess I would absolutely accept a PR. If you still have the code please submit it so you can be credited properly

In general, PR to main - I'll switch the branch as needed.

bartreardon avatar May 30 '24 12:05 bartreardon

@bartreardon can probably close this now

fraserhess avatar Jun 11 '24 14:06 fraserhess