-
Notifications
You must be signed in to change notification settings - Fork 22
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
Passing terminal commands to --messageaction #8
Comments
@jameskirsop we pass an “open” command to what is passed to messageaction. Perhaps that can open a .sh? Or bash direct? |
Hey @macmule, as discussed on slack, it looks like Sounds like an additional pair of command line arguments for Notifier will be needed. |
Here's a branch that has a very primitive implementation of this feature for the alert notification type. I've been testing with this set of flags: Basic syntax change is that if you prefix the Obviously we can roll this approach to the other flags and the banner type too, but This approach saves having to add an additional command line flag, but still retains backwards compatibility with the logout and open methods. |
I don't think a solution running My fork is here. That allows for the previous open functionality while adding scripts too. The only detail to watch out for is the script path. Calling from Desktop, Documents, etc. still runs into PPPC prompts. |
Thanks @nstrauss and @jameskirsop, I’m thinking of a method here which would delineate based on the presence of a shebang.. will have a look post BS madness. So an action passed which begins |
Ran into a situation today where I wanted to run a script which included a tool requiring admin rights - the Jamf binary. Since notifications run in user space this wasn't possible. As an addendum to this feature it'd also be useful to implement a privileged helper tool which can be used where root or elevated privileges are required. I can spin this off into its own FR as well. Since I can't promise I'll have the time or ability to work on this myself it's definitely more of a gentle plea than anything else. It would be incredibly useful for us to be able to run Jamf custom triggers directly through a notification. |
Addressed in 3.0 |
I'd like to be able to pass terminal commands to
--messageaction
in much the same way that you can with Yo's-B
/--bash-action
.I can't seem to work out how to get the correct syntax to make this happen with the available flags in Notifier. Is this something that's not available, or am I doing it wrong!
The text was updated successfully, but these errors were encountered: