discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSWorkspace launchedApplications] issue


From: Richard Frith-Macdonald
Subject: Re: [NSWorkspace launchedApplications] issue
Date: Thu, 2 Aug 2007 09:37:05 +0100


On 1 Aug 2007, at 21:58, Andreas Höschler wrote:

Hi all,

as the name implies launchedApplications is supposed to return only launched applications. On MacOSX this works as expected. Under GNUstep (also with the latest release) I get the full set of installed applications (whether they are running or not).

I don't think so ... what you are probably seeing is a list of all crashed/killed applications.

Is there a workaround for this bug? Is see that determining this list is no easy task since it requires some kind of registration mechanism. What's the current approach in GNUstep for doing that?

I just found some GSDock sources that work ok on MacOSX but not at all under GNUstep, mainly because GSDock is based on this launchedApplications method of NSWorkspace which seems to be broken in GNUstep.

Hints are greatly appreciated!

Probably you are not running a workspace manager (eg GWorkspace) which launches and controls apps for you.

If there is no workspace manager, then we don't know if an app has crashed or been killed ... so it persists in the launched apps database until some other app tries to contact it and (upon finding that it can't be reached) removes it from the database, or the app is run again.

You can clean up a the record for an app simply by running it again and shutting it down cleanly.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]