Anonymous - 2011-09-07

Originally posted by: josmasfl...@gmail.com

Comments from issue 92:

executing the process in a headless way makes the softphone crash. It can be done by adding the flag:
java -Djava.awt.headless=true

source (with further link to more elaborate info): http://zzamboni.org/brt/2007/12/07/disable-dock-icon-for-java-programs-in-mac-osx-howto/index.html

The code to start the softphone is here:
https://code.google.com/p/openwonderland/source/browse/trunk/core/src/classes/org/jdesktop/wonderland/client/softphone/SoftphoneControlImpl.java#271

Feel free to add the java.awt.headless property and see if it works. My only concern is whether you can turn off the headless option, for example when we use tools->audio->show softphone.  If not, it looks like startSoftphone() waits until the softphone process is started. So presumably you could find where that is called (probably in audio-manager), and after it returns, grab focus back to the main screen.

No luck with the flag. It crashes the softphone on startup. and it seems that making it headless friendly is somehow rather involved. http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/

 

Related

Tickets: #92