On Jan 26, 2008, at 0:22, Robin Dunn <[EMAIL PROTECTED]> wrote:

Jared Rhine wrote:

Please report any successes or failures you may have. If things are looking good, I'll proceed to a more traditional RC1 announcement.

The application bundle for Leopard is showing "Python" in the application menu title instead of "Chandler". It looks to me like all the necessary things are in the Info.plist file, so I'm not sure why it isn't showing "Chandler"... My guess is that is has something to do with either the double exec from the ChandlerApp shell script, (ChandlerApp --> RunPython --> Python) and/or that it is resulting in an exec of the Python bundle located *outside* of the Chandler app bundle. (So the menu is taking the name from that bundle instead of the chandler bundle.)

Last time I fixed this issue, I had to tweak stuff in our Python build for the right stuff to show. On leopard, we don't build our own Python, we use the OS's so we're to having to figure this out again.

To test this I replaced the bundle's Contents/MacOS/ChandlerApp script with a Python script (attached) that does basically what the RunPython script does. That does fix the app name on the menu, but I expect that some more testing should be done to make sure I didn't miss anything.

Yes, be sure to verify that the menu survives a restart via a programmatic restart such as after a repo restore or an EIM import.

Andi..





IIRC the bundle for Tiger that includes its own Python gets around this problem by using a custom Info.plist in the Python bundle. This same approach could be used in that app bundle and it would be able to not need to rely on that hack anymore. It would just need to run the script with the other python.

--
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!

#!/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/ Python.app/Contents/MacOS/Python

import sys, os

execdir = os.path.dirname(sys.argv[0])
executable = sys.executable
resdir = os.path.join(os.path.dirname(execdir), "Resources")
mainprogram = os.path.join(resdir, "Chandler.py")

os.environ['CHANDLERHOME'] = resdir
os.environ['CHANDLERBIN'] = resdir
os.environ['PYTHONPATH'] = '%(resdir)s/release/site-packages:% (resdir)s:%(resdir)s/parcels' % locals() os.environ['DYLD_LIBRARY_PATH'] = '%(resdir)s/release/lib:%(resdir)s/ release/db/lib:%(resdir)s/release/icu/lib' % locals()
os.environ['LC_PATH'] = '%(resdir)s/release/share/locale' % locals()

os.chdir(resdir)
sys.argv.insert(1, mainprogram)
os.execve(executable, sys.argv, os.environ)



# #!/bin/sh

# unset DYLD_LIBRARY_PATH DYLD_FRAMEWORK_PATH
# unset PYTHONHOME PYTHONBIN PYTHON_VER
# unset CHANDLERHOME CHANDLERBIN

# cd "$(dirname "${0}")"
# execdir="$PWD"
# resdir="$(dirname "${execdir}")/Resources"
# exec "${resdir}/release/RunPython" -O "${resdir}/Chandler.py"
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to