Closed PinkShellos closed 1 month ago
I dug into this today, and it looks like there's a lot more work to do to get Dialog to launch at the login window.
Challenges:
--loginwindow
and path to the json fileI've got some proof of concept code working, but I don't want to spend more time on that aspect of this if it's something you're actively working on. Please let me know your intentions with this PR. As-is, I can take it and use it as the basis of the LoginWindow feature, but there is significantly more work to do before it would be ready.
Sounds good, I'll retract my PR and continue work back in the issue.
I'll review the SwiftDialog docs on the feature and come up with a plan.
Initial thoughts on how to handle this challenge is to have a function that creates the agent with the applicable arguments and create the JSON file with PlistBuddy.
I'll dig into this next week.
Rebased code and implemented changes suggested by @BigMacAdmin in #52
Added command-line argument support for
-l
or--loginwindow
.Unified
check_silent_option
,configure_silent_mode
, andwait_for_user
functions undercheck_runmode_option
.Runmode settings defaults
initiate_runmode
function towait_for_user
function's behavior, otherwise it rewritesinitiate_runmode
to behavior ofconfigure_silent_mode
or sets the behavior to wait for the loginwindow user.Updated implementation of functions to match new functionality. Added
--loginwindow
as part of the SwiftDialog arguments whenLoginWindowMode
is enabled.