Finally managed the issue with showing the correct name for the Mac OS X application menu entry in the main menu bar. 5_1_x

Sat, 10 Dec 2011 18:01:16 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 10 Dec 2011 18:01:16 +0100
branch
5_1_x
changeset 1489
e647aa92e0ea
parent 1487
000d35ce20b6
child 1493
876e068d632d

Finally managed the issue with showing the correct name for the Mac OS X application menu entry in the main menu bar.
(transplanted from de290ce82a75a5331f30448db862e8b2ad480241)

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sat Dec 10 15:45:14 2011 +0100
+++ b/install.py	Sat Dec 10 18:01:16 2011 +0100
@@ -547,6 +547,11 @@
     os.mkdir(dirs["exe"])
     os.mkdir(dirs["icns"])
     
+    starter = os.path.join(dirs["exe"], "eric")
+    os.symlink(
+        "{0}/Resources/Python.app/Contents/MacOS/Python".format(sys.exec_prefix),
+        starter)
+    
     wname = os.path.join(dirs["exe"], "eric5")
     path = os.getenv("PATH", "")
     if path:
@@ -559,14 +564,14 @@
 '''#!/bin/sh
 
 PATH={0}
-exec "{1}/bin/pythonw3" "{2}/{3}.py" "$@"
-'''.format(path, sys.exec_prefix, pydir, "eric5")
+exec "{1}" "{2}/{3}.py" "$@"
+'''.format(path, starter, pydir, "eric5")
     else:
         wrapper = \
 '''#!/bin/sh
 
-exec "{0}/bin/pythonw3" "{1}/{2}.py" "$@"
-'''.format(sys.exec_prefix, pydir, "eric5")
+exec "{0}" "{1}/{2}.py" "$@"
+'''.format(starter, pydir, "eric5")
     copyToFile(wname, wrapper)
     os.chmod(wname, 0o755)
     

eric ide

mercurial