[Pythonmac-SIG] Should Python.app be an LSUIElement = 1 app?
Ronald Oussoren
ronaldoussoren at mac.com
Thu Feb 5 08:14:58 CET 2009
On 4 Feb, 2009, at 23:26, Bill Janssen wrote:
>
>
>> The right ways to fix the issue you're running into with appscript
>> are
>>
>> 1) Wrap your script into an .app bundle that includes the LSUIElement
>> setting (because appeartly you are writing an application that is an
>> agent-style application)
>>
>> 2) Research why appscript causes the icon to appear on the dock. As
>> has noted it should be possible to avoid that because the
>> ScriptingBridge framework doesn't have this problem.
>>
>> The second option would be the most useful for the community, but is
>> way harder than the first option.
>
> Yes, both of those are good ideas. But it's not just appscript; I'm
> doing something else in a different program (that doesn't use
> appscript)
> that also causes the rocket-in-the-dock problem. This one is
> particularly irritating, because it's a real daemon, and can't always
> get through to the dock.
Can you reproduce the issue in the second problem with a simple
script? If so, please file a bug in the python bugtracker and assign
it to me.
The dock icon should mean you're calling an API that requires access
to the window server. Does the daemon program work when you start it
without begin logged on to the console (that is, log in using an SSH
session without being logged on on the console)? If that doesn't work,
it shouldn't work either with and without the LSUIElement key.
Ronald
>
>
> Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2224 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090205/f8257138/attachment.bin>
More information about the Pythonmac-SIG
mailing list