Giter Site home page Giter Site logo

Automation issues about whereami HOT 4 OPEN

robmathers avatar robmathers commented on August 19, 2024
Automation issues

from whereami.

Comments (4)

robmathers avatar robmathers commented on August 19, 2024

Just a guess, but I think you need to use the Program key for the executable path. The ProgramArguments would be any flags afterwards.

Otherwise, I haven't tried using launchd for it, but my recollection with other things is you need to be pretty careful about paths and permissions, since the environment isn't the same as when you run it from a shell.

One other thought is to try and run a shell script that calls the executable and see if that gives any more output you could debug with.

from whereami.

elkram avatar elkram commented on August 19, 2024

We found that we can execute whereami, by first determining the current logged user, and prefixing with sudo, like so:
logged_user=$(/bin/ls -l /dev/console | /usr/bin/awk '{ print $3 }')
this_location=$(sudo -u "$logged_user" /usr/local/bin/whereami)

from whereami.

pwmurf avatar pwmurf commented on August 19, 2024

Hello again...

After updating to Sonoma I'm noticing that whereami doesn't present itself under Sys Pref > Privacy & Security > Location Services anymore. Invoking it in the CLI doesn't ask for permission anymore, it just alerts you that you need to grant it. I don't see a way to add apps manually in Sonoma.

Access to location services was denied. You may need to enable access in System Preferences.

from whereami.

pwmurf avatar pwmurf commented on August 19, 2024

Never mind, I see this was brought up in a separate issue!

from whereami.

Related Issues (11)

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.