This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
As a part of implementing issue 5790 new functionallity must be added to openfile. runide.{sh,exe} -openfile <file> will try to connect with a running IDE via TCP/IP. If the connection fails indicating no IDE is running, a new instance of NB will be launched with a system property ${netbeans.openfile} set to <file>. Openfile submodule should check this property during startup, probably in its ModuleInstall.restored() method and open the file.
Created attachment 5736 [details] Proposed fix.
It is implemented but it is not nice, especially: RequestProcessor.postRequest (..., 10000); when I am waiting for IDE initialization. I am not sure if it is possible to listen on start-up. I have to wait for at least filesystem initialization. Please, try it and let me know.