bugGNUstep - Bugs: bug #4066, NSWorkspace launchApplicaion:...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #4066: NSWorkspace launchApplicaion: misbehaved

Submitted by:  Stefan Urbanek <stefanu>
Submitted on:  Sat 21 Jun 2003 11:52:21 PM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 26 Jul 2003 03:29:20 PM UTC, comment #5:

There has been some discussion about this in the mailing list and the current behaviour is viewed as the correct one.

Fred Kiefer <FredKiefer>
Project Member
Sun 22 Jun 2003 10:39:17 AM UTC, comment #4:

I think the price on performance (time waiting on an app to finish all of its initialization) would be to high for the avarage case. Maybe we could augment the API with a method, that actually waits? Or send a distributed notification before/after posting appDidFinishLaunching:?

David Ayers <ayers>
Project Member
Sun 22 Jun 2003 10:36:29 AM UTC, comment #3:

Well, I do "#1" in my dock.app, I launch apps "just for fun"
What I do is wait for 30 seconds, if I don't get a NSWorkspaceDidLaunchApplicationNotification, then I assume the App did not launch an act appropriately.

The Dock in OS X does the exact same thing AFAIK, the AppIcon just keeps on bouncing until it gets the NSWorkspaceDidLaunchApplicationNotification. After a certain amount of time the Dock just assumes the App did not start.

So... the implementation seems correct, just wait for the proper notification.

Chad Hardin <cehardin>
Sun 22 Jun 2003 09:56:48 AM UTC, comment #2:

I disagree and I would like to open this to discussion.

Ask a question: Why would you like to launch an application in most of the cases?

1. Just to launch it and let it be launched ('just for fun')
or
2. Launch it and do something with it

I think that 2. is the case. Then I think if OS/X behaves same as gnustep at this time, then the behaviour is wrong. This method should wait until I can communicate with the application, that means, the method should wait until the application is successfully lanched.

Stefan Urbanek <stefanu>
Project Member
Sun 22 Jun 2003 09:07:33 AM UTC, comment #1:

I've just spent a couple of hours checking this.
The current GNUstep behavior appears to be the same as the MacOS-X and OpenStep behavior ... ie the interpretation of the word 'launched' means that a process was started, not that it is completely initialised/working. I have updated the documentation to be (I hope) clearer about this than the MacOS-X documentation.

Richard Frith-Macdonald <CaS>
Project Member
Sat 21 Jun 2003 11:52:21 PM UTC, original submission:

NSWorkspace launchApplication:'name' does not behave as it should.

From apple docs:

Returns YES if the application is successfully launched...

However, it seems to return immediately after running application process. I think that application is 'successfulyl lanchued' when all app initialisation priocess ends and app's delegate receives applicationDidFinishLaunching: notification. Or ... application is sucessfully launched when i can connect to it. I wouls expect this method to wait for all application initialisation and for some distant notification about successfull launch.

Current misbehaviour requires workarounds to make it work.

Stefan Urbanek <stefanu>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 22 May 2005 11:19:18 PM UTCFredKieferOpen/ClosedDeclined=>Closed
Sat 26 Jul 2003 03:29:20 PM UTCFredKieferStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)
Sun 22 Jun 2003 09:56:48 AM UTCstefanuOpen/ClosedDeclined=>(Error - Not Found)
Sun 22 Jun 2003 09:07:33 AM UTCCaSOpen/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1