Code Monkey home page Code Monkey logo

Comments (12)

andredb90 avatar andredb90 commented on August 11, 2024

Wondering if you had any luck fixing this?

I'm experiencing the same issue. Running a simple command such as open -a Safari works as expected. But I'm trying to trigger our MDM client and it fails. (even though the same command being run as the current user via Terminal succeeds)

from supportapp.

silentArtifact avatar silentArtifact commented on August 11, 2024

No luck so far. We've put it on hold for the moment.

from supportapp.

andredb90 avatar andredb90 commented on August 11, 2024

Thanks for the quick reply!

hmm.. tried to give it Full Access, too.. but no cigar. Guess we'll have to wait until the developers chime in.

I know someone who's created a simple automator app which runs an Apple Script. Calling the script by opening the app instead of running the command seems to work.

from supportapp.

the-monger avatar the-monger commented on August 11, 2024

Similar issue- I have buttons that will open apps fine, but when it comes to running a script, it gets weird.
It will run a script first time, no problems. If I hit the button to run it again, the script output changes (incorrectly, I might add. For example- if I have a script that runs "fdesetup status | head -n 1" it will correctly report filevault on; if I run it again, it will say it's off. Uses an AppleScript popup to return the info). If I edit the script, nothing changes. Eventually, the script will stop being recognized at all.

Script is in /Library/Application Support/MDM/Scripts. Script is executable

from supportapp.

the-monger avatar the-monger commented on August 11, 2024

Can also confirm the automator workaround

from supportapp.

martinwen1990 avatar martinwen1990 commented on August 11, 2024

Can we maybe see several examples of commands or scripts that are entered in the config profile? We also currently have a problem calling a script in the support app. Thank you very much.

from supportapp.

sidbena avatar sidbena commented on August 11, 2024

I'm also having issues with this. I've tried assigning a command in the form of /path/to/script.file with or without arguments, /path/to/binary arg1 arg2 and <shell built-in> arg1 arg2, but none of them work.
If I repeatedly click the button in the app, the app says ”An error occurred".
How is this supposed to work? Are there any logs?
Thanks!

from supportapp.

jordywitteman avatar jordywitteman commented on August 11, 2024

Please note the current implementation of running scripts/commands is running in the user space because the app is sandboxed, so the script is probably not reachable or requires elevated privileges.

We are working on an (optional) helper utility to allow running scripts/commands with elevated privileges because we don't want to break out of the sandbox for security reasons. A beta will probably be released before the end of next week :)

from supportapp.

sidbena avatar sidbena commented on August 11, 2024

The specific code I'm trying to run requires no elevation how ever.
Is there any logging or such?

Sounds good about the utility though, and nice that it's optional.

from supportapp.

meta-github avatar meta-github commented on August 11, 2024

I just have seen the new beta, thanks a lot! Is the SupportHelper app available as well?

from supportapp.

jordywitteman avatar jordywitteman commented on August 11, 2024

Hi @meta-github yes it's in the pre-release assets for the 2.4 beta:

Documentation: https://github.com/root3nl/SupportApp/tree/development
SupportHelper download: https://github.com/root3nl/SupportApp/releases/tag/v2.4-beta

from supportapp.

bradtchapman avatar bradtchapman commented on August 11, 2024

I think this issue can be closed now that SupportHelper is available. Yes?

from supportapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.