Domanda

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()?

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top