Skip to content
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

Operations fail on /Applications due to lack of permissions. #9

Closed
ivansavra1 opened this issue Nov 22, 2024 · 4 comments
Closed

Operations fail on /Applications due to lack of permissions. #9

ivansavra1 opened this issue Nov 22, 2024 · 4 comments

Comments

@ivansavra1
Copy link

Hi, thanks for making Sentinel, it's a pretty useful app, I wanted to suggest you to look into error handling and sudo permissions. When you try to act on a file that's on /Applications (And other system directories), since Sentinel lacks permission to modify files there, the operations fail but the "App was removed from quarantine / signed" message still shows, it seems there is no error handling, and it automatically assumes it was successful after running the command or call.

I know this is the case, because I run xattr "/Applications/something.app" and I can see that the quarantine attribute is still there, so in addition to the error handling, there should be a fallback that uses sudo (Getting the correct permission using Touch ID / password) so it works in more cases.

Thanks.

@alienator88
Copy link
Owner

alienator88 commented Nov 22, 2024

Yeah, there's no error handling there, I'm not sure I even used that function much myself. This was my first Mac app so there's probably some things missing 😂 I'll take a look tomorrow.
If you launch the app from Terminal and reproduce the issue, it might show the console log error of exactly what's happening.

@ivansavra1
Copy link
Author

ivansavra1 commented Nov 22, 2024

This was my first Mac app

You did a good job considering that!

@alienator88
Copy link
Owner

@ivansavra1 would you be able to test this build out for me?
I'm unable to reproduce your issue with apps in /Applications so it's a best guess effort currently.
Sentinel.zip

If it still doesn't work, I added some debug logging. Launch the app from Terminal by running: /Applications/Sentinel/Contents/MacOS/Sentinel

This should show logging in the terminal window when it launches. Then drop one of the apps that don't work to remove from quarantine and see what errors it spits out.

@alienator88
Copy link
Owner

No reply, closing this out.
New build is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants