|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
execl("/usr/bin/open", "/usr/bin/open", "-a", "Safari", 0);On Jul 1, 2008, at 11:19 , Kristopher Matthews wrote:
Try executing "/Applications/Safari.app/Contents/MacOS/Safari".
/Applications/Safari.app identifies a bundle, not the actual application (and execv() is not aware of bundles).
--Kris
On Jul 1, 2008, at 10:15 AM, Barrie Green wrote:
Hi all,
I want to write a quick little cocoa app that fires off Safari.
I started with something like
int main(int argc, char* argv[]) { ... ... if(execv("/Applications/Safari.app", someArgs) == -1) { NSLog(@"execv failed with %s", strerror(errno)); } }
It always fails with 'Permission denied', OK I kinda expect that. But how do I fix it?
Would authorization would help? I've looked a the docs a little and it
would appear that I should do a
AuthorizationCreate/AuthorizationCopyRights shuffle but if so what
rights should I use?
Ideally I would like to run the app without it asking me for my password, how could I achieve that?
TIA
bg
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (email@hidden) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
| References: | |
| >exec(uting) Safari - How (newbie) (From: "Barrie Green" <email@hidden>) | |
| >Re: exec(uting) Safari - How (newbie) (From: Kristopher Matthews <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.