Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jpopop

macrumors newbie
Original poster
Jun 23, 2011
6
0
On Mac 10.7, calling function system with parameter "open -a /Volumes/A/A.app" in my code in C language, system function return error: permission denied.but it works fine on Mac 10.6.
why? account rights managment change somthing on MAC 10.7?

thx:confused:
 
Can't talk about Lion, NDA.

But even under SL, that open command seems invalid. If you include the -a option then you're saying, open file x using app a. But you've only given app a, not file x. If you trying to run the app mounted in volume A, then I don't think you want the -a.
 
You really should be using LSOpenApplication() to launch apps instead anyways.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.