angstsmurf / spatterlight

Updated fork of Spatterlight
GNU General Public License v3.0
105 stars 5 forks source link

Error when trying to launch Spatterlight with sudo #70

Closed Nephar closed 1 year ago

Nephar commented 1 year ago

While trying to investigate the themes and missing fonts issue I have encountered an error.

sudo /Applications/Spatterlight.app/Contents/MacOS/Spatterlight causes Illegal instruction: 4.

Works fine without sudo. Tested with Spatterlight 0.9.9 under Mojave.

angstsmurf commented 1 year ago

This seems related: https://stackoverflow.com/questions/14268887/what-is-the-illegal-instruction-4-error-and-why-does-mmacosx-version-min-10

If I understood it correctly, it tries to call some library that isn’t present in Mojave.

angstsmurf commented 1 year ago

By the way, you could probably build Spatterlight yourself on 10.14 without too much hassle, if you feel like investigating further.

Nephar commented 1 year ago

Unfortunately my old XCode installation needs some updates applied, but their certifications have expired by Apple. I know the way to bypass those issues, but I am reluctant to do so. I don't want to break something inadvertently, since I am still using this computer for some work.

Should I close this then?

angstsmurf commented 1 year ago

I'm fine either way. It would be interesting to find out why it happens.

angstsmurf commented 1 year ago

Judging by the comments to this stackoverflow question, this seems to be the expected result when trying to run a sandboxed app with sudo. I suppose that is enough of an explanation.