Вопрос

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