Hi -- I believe I've been able to track down the cause of the double/bouncing icon. If `CFBundleExecutable` is present and set to the file name of the executable in `app/Contents/MacOS`, then the extra icon is shown. If `CFBundleExecutable` is not present or set to some other value, only one icon is shown. (In both cases, `LSBackgroundOnly` is False.)
~ Devon > -----Original Message----- > From: Devon Rueckner > Sent: Tuesday, April 26, 2011 3:39 PM > To: [email protected] > Subject: RE: [PyInstaller] OS X dock icon > > > Hi -- > > PyInstaller: > > trunk r1374. > > Info.plist: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" > "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> > <plist version="1.0"> > <dict> > <key>CFBundleDisplayName</key> > <string>Main</string> > <key>CFBundleExecutable</key> > <string>main</string> > <key>CFBundleIconFile</key> > <string>App.icns</string> > <key>CFBundleInfoDictionaryVersion</key> > <string>6.0</string> > <key>CFBundleName</key> > <string>Main</string> > <key>CFBundlePackageType</key> > <string>APPL</string> > <key>CFBundleShortVersionString</key> > <string>0.0.0</string> > <key>LSBackgroundOnly</key> > <false/> > </dict> > </plist> > > > > > ________________________________________ > From: [email protected] [[email protected]] on > behalf of Matthias Hub [[email protected]] > Sent: Tuesday, April 26, 2011 2:50 PM > To: [email protected] > Subject: Re: [PyInstaller] OS X dock icon > > Two questions: > - What version of pyinstaller do you use? > - and whats your plist looking like? We are using a similar one to the > following one: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" > "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> > <plist version="1.0"> > <dict> > <key>CFBundleIdentifier</key> > <string>NAME</string> > <key>CFBundleShortVersionString</key> > <string>VERSION</string> > <key>CFBundleVersion</key> > <string>VERSION</string> > <key>CFBundleInfoDictionaryVersion</key> > <string>6.0</string> > <key>CFBundleDisplayName</key> > <string>NAME</string> > <key>CFBundleIconFile</key> > <string>ICON_FILE</string> > <key>CFBundleExecutable</key> > <string>MacOS/NAME</string> > <key>CFBundleName</key> > <string>NAME</string> > <key>CFBundleGetInfoString</key> > <string>NAME VERSION</string> > <key>LSHasLocalizedDisplayName</key> > <false/> > <key>NSAppleScriptEnabled</key> > <false/> > <key>CFBundlePackageType</key> > <string>APPL</string> > <key>LSBackgroundOnly</key> > <false/> > </dict> > </plist> > > Greets, > Matthias > > On Apr 26, 2011, at 8:03 PM, Devon Rueckner wrote: > > > > > Hi all -- > > > > I've been trying to get our PyQt-based app wrapped up into an OS X > app, and I'm running in to the problem reported in > > http://www.pyinstaller.org/ticket/156 > > > > I seem to be getting inconsistent behavior: setting LSBackgroundOnly > == 0 will usually result in a double bouncing icon, but occasionally it > does show a single icon -- haven't tracked down yet why this happens. > LSBackgroundOnly == 1 will never show an icon. > > > > Any advice? It seems like it might be a race condition. > > > > Also, is there any documentation on recompiling the c source? > > > > Thank you very much > > ~ Devon > > > > > > (versions: OSX 10.6.7, PyInstaller trunk r1374, Qt 4.6.3, PyQt 4.7.7) > > > > -- > > You received this message because you are subscribed to the Google > Groups "PyInstaller" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > [email protected]. > > For more options, visit this group at > http://groups.google.com/group/pyinstaller?hl=en. > > > > <main.spec><main.py> > > -- > You received this message because you are subscribed to the Google > Groups "PyInstaller" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/pyinstaller?hl=en. -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
