mail-archives/mono-osx/2010-September/003161.html

98 строки
4.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] Error with &quot;psn&quot; command line option for .app on OS X
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Error%20with%20%22psn%22%20command%20line%20option%20for%20.app%20on%20OS%20X&In-Reply-To=1285072011326-2548503.post%40n4.nabble.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003156.html">
<LINK REL="Next" HREF="003167.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] Error with &quot;psn&quot; command line option for .app on OS X</H1>
<B>Michael Hutchinson</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=%5BMono-osx%5D%20Error%20with%20%22psn%22%20command%20line%20option%20for%20.app%20on%20OS%20X&In-Reply-To=1285072011326-2548503.post%40n4.nabble.com"
TITLE="[Mono-osx] Error with &quot;psn&quot; command line option for .app on OS X">m.j.hutchinson at gmail.com
</A><BR>
<I>Sun Sep 26 12:25:09 EDT 2010</I>
<P><UL>
<LI>Previous message: <A HREF="003156.html">[Mono-osx] Error with &quot;psn&quot; command line option for .app on OS X
</A></li>
<LI>Next message: <A HREF="003167.html">[Mono-osx] Error with &quot;psn&quot; command line option for .app on OS X
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3161">[ date ]</a>
<a href="thread.html#3161">[ thread ]</a>
<a href="subject.html#3161">[ subject ]</a>
<a href="author.html#3161">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Tue, Sep 21, 2010 at 5:26 AM, stevenspencer
&lt;<A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">stevenspencer01 at gmail.com</A>&gt; wrote:
&gt;<i>
</I>&gt;<i> I have an intermittent problem. I have a mono application as a .app bundle on
</I>&gt;<i> my desktop.
</I>&gt;<i>
</I>&gt;<i> Occasionally, double-clicking the .app has no effect. You see the icon
</I>&gt;<i> effect (the icon increases in size and fades out), but the application never
</I>&gt;<i> launches.
</I>&gt;<i>
</I>&gt;<i> Looking in the Console, the line
</I>&gt;<i>
</I>&gt;<i> &#160; &#160; &#160;Unknown command line option '-psn_0_548998'
</I>&gt;<i>
</I>&gt;<i> appears for my application. This is what is seen on the command line if one
</I>&gt;<i> types &quot;mono -psn_0_548998 appname&quot;. Typing &quot;mono appname -psn_0_548998&quot; has
</I>&gt;<i> no issues since the command line option gets passed through to my
</I>&gt;<i> application.
</I>&gt;<i>
</I>&gt;<i> It appears that the launchd app of the OS is adding this extra option and
</I>&gt;<i> passing it through to mono. Although, given that the problem is
</I>&gt;<i> intermittent, it does not do this every time. When the application works,
</I>&gt;<i> one can see, from doing a &quot;ps agux&quot;, that my application does not have a
</I>&gt;<i> &quot;-psn...&quot; option on its command line whereas other running applications,
</I>&gt;<i> such as iTunes, do have the option.
</I>&gt;<i>
</I>&gt;<i> After googling around for this, there is very little information. The -psn
</I>&gt;<i> option is for the OS X process id, but that's about as much as I can find.
</I>&gt;<i>
</I>&gt;<i> Has anybody else seen such an intermittent problem? I am running OS X 10.6.4
</I>&gt;<i> and Mono 2.6.4
</I>
What does your launch script look like?
--
Michael Hutchinson
<A HREF="http://mjhutchinson.com">http://mjhutchinson.com</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003156.html">[Mono-osx] Error with &quot;psn&quot; command line option for .app on OS X
</A></li>
<LI>Next message: <A HREF="003167.html">[Mono-osx] Error with &quot;psn&quot; command line option for .app on OS X
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3161">[ date ]</a>
<a href="thread.html#3161">[ thread ]</a>
<a href="subject.html#3161">[ subject ]</a>
<a href="author.html#3161">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>