Make CFBundleIconFile apply to all executables inside a Bundle on Tiger?
Make CFBundleIconFile apply to all executables inside a Bundle on Tiger?
- Subject: Make CFBundleIconFile apply to all executables inside a Bundle on Tiger?
- From: "Patrick Li" <email@hidden>
- Date: Fri, 29 Aug 2008 11:34:22 -0700
Hi,
I'm creating a app that has the executable in Contents/MacOS/ named
Foo. Inside the Info.plist file I have it set up to make Foo the bundle
executable and I have assigned an icon to it that is resided inside the
Contents/Resources directory. The part of the Info.plist looks like
this:
<key>CFBundleExecutable</key>
<string>Foo</string>
<key>CFBundleIconFile</key>
<string>Icon.icns</string>
Launching Foo works fine and I see the icon in my dock. Everything is happy.
Now, I want to launch Foo with a few command line flags, and I decide
to create a second executable in Contents/MacOS/ called FooLauncher.
FooLauncher is basically a simple shell script that launches Foo. So I
modify the Info.plist to have it launch FooLauncher instead of Foo:
<key>CFBundleExecutable</key>
<string>FooLauncher</string>
<key>CFBundleIconFile</key>
<string>Icon.icns</string>
When I launch this on Leopard, Foo gets launched successfully and it has the icon that I want in my dock.
However, when I launch this on Tiger, Foo gets launched successfully,
but the icon was defaulted to an ugly default console looking icon
instead of the Icon that I chose for it to launch.
Is there a way I can get Icon.icns to apply to both Foo and FooLauncher on Tiger? Alternatively, can you have two Info.plist files inside a bundle that describes the properties of two different executables inside Contents/MacOS?
Thanks in advance.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden