سؤال

I have been using Launch Services function LSFindApplicationForInfo() to check if an appication is installed.

This works fine, except when a user send the application to the trash. This method still finds it in the trash but can't invoke it.

Is there another way to check if an application is installed in /Applications? Or can I specify that I want to only look under /Applications when calling LSFindApplicationForInfo()?

هل كانت مفيدة؟

المحلول

I was able to solve this by checking the path to ensure it started with "/Applications".

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top