Skip to content

Comments

Add timeout to prevent blocking other processes#140

Closed
Raptor399 wants to merge 6 commits intoInstallomator:devfrom
Raptor399:timeout
Closed

Add timeout to prevent blocking other processes#140
Raptor399 wants to merge 6 commits intoInstallomator:devfrom
Raptor399:timeout

Conversation

@Raptor399
Copy link
Contributor

Added variable TIMEOUT that can be set to the number of seconds.

When the timeout expires, the dialogue box will give up waiting for a button click.
This prevents the script from blocking other processes while the user ignores the
dialogue box for a prolonged period of time.

Although TIMEOUT should probably not be empty by default, I kept it that way to
not introduce changes to the existing script and stick to its earlier behavior.

Inspired by @saess-sep commit scriptingosx@d6c255d

…er which

the dialogue box will give up waiting for a button click. This prevents the
script from blocking other processes while the user ignores the dialogue box
for a prolonged period of time.

Inspired by @saess-sep commit scriptingosx@d6c255d
# Conflicts:
#	CHANGELOG.md
#	Installomator.sh
@acodega acodega added the feature New feature or request label Jun 15, 2021
# Conflicts:
#	fragments/functions.sh
@scriptingosx scriptingosx added this to the v11 milestone Dec 13, 2022
@scriptingosx
Copy link
Collaborator

overlaps with #771

@Raptor399
Copy link
Contributor Author

Correct. #771 is the light version of this PR, quietly managing the "Not now" variant. This PR messages the user what's about to happen and differentiates its behaviour based on the preferred type of action.

Either PR will remedy the problem of the Installomator script blocking its parent process due to user inaction, which makes the execution of Jamf policies unreliable. It would be really nice if one of the PRs could be included in a future release.

# Conflicts:
#	CHANGELOG.md
#	fragments/functions.sh
@Theile Theile deleted the branch Installomator:dev June 5, 2023 13:28
@Theile Theile closed this Jun 5, 2023
@scriptingosx scriptingosx reopened this Jun 5, 2023
@acodega
Copy link
Collaborator

acodega commented Nov 5, 2025

Resubmit/resolve conflicts, this can not be editing files outside of fragments

@acodega acodega closed this Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request not-label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants