We are developing a command-line application based on NetBeans platform. To hide NetBeans UI we give it "--nosplash --nogui" args. But it still shows the "Enter Master Password" dialog when the code accesses keyring.
Could disable it if java.awt.headless=true is given, which --nogui could probably set among its other chores.
Workaround is trivial:
After core-main #f169ed329bdd you should be able to pass -J-Djava.awt.headless=true to suppress master password encryption. Untested.
(--nogui just instructs NB to not show the main window. Setting the JRE to be headless is a stronger condition which implies --nogui.)
Integrated into 'main-golden', will be available in build *201004131450* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jesse Glick <firstname.lastname@example.org>
Log: #182114: disable when headless.