Comments (4)
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.
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.
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.
Never mind, I see this was brought up in a separate issue!
from whereami.
Related Issues (11)
- Ventura Location Services Access HOT 15
- Password:Access to location services was denied. You may need to enable access in System Preferences.
- JSON output HOT 2
- Not an issue, but this is awesome.
- Not an issue as well, I've made a Brew cask HOT 2
- aligned output and updated deprecated code HOT 3
- [Request] Make an iOS version HOT 1
- What is the license on this? HOT 2
- Not working in Catalina
- OpenCage Warning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whereami.