Revision
76542
Author
elelay@macports.org
Date
2011-02-27 12:33:33 -0800 (Sun, 27 Feb 2011)

Log Message

fix StartupItem.

Modified Paths

Diff

Modified: users/elelay/ports/aqua/Notifications2Growl/Portfile (76541 => 76542)


--- users/elelay/ports/aqua/Notifications2Growl/Portfile	2011-02-27 19:03:36 UTC (rev 76541)
+++ users/elelay/ports/aqua/Notifications2Growl/Portfile	2011-02-27 20:33:33 UTC (rev 76542)
@@ -30,7 +30,13 @@
 
 # StartupItem
 startupitem.create		yes
-startupitem.executable	/usr/bin/open -a ${xcode.destroot.path}/Notifications2Growl.app
+
+# can't use startupitem.executable because open exits immediately
+# (and can't use open -W because it's not available on Tiger
+# can't invoke ${applications_dir}/Notifications2Growl.app/Contents/MacOS/Notifications2Growl
+# because then the icon shows up in the dock
+startupitem.start       "/usr/bin/open -a ${applications_dir}/Notifications2Growl.app"
+
 startupitem.location	LaunchAgents
 
 # can't prevent the private Framework from being copied !