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.

Bug 182114 - master password dialog is shown even in --nogui mode
Summary: master password dialog is shown even in --nogui mode
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal (vote)
Assignee: Jesse Glick
Depends on:
Blocks: 173413
  Show dependency tree
Reported: 2010-03-16 13:47 UTC by Alexey Vladykin
Modified: 2010-04-13 17:36 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Vladykin 2010-03-16 13:47:54 UTC
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.
Comment 1 Jesse Glick 2010-04-06 13:11:31 UTC
Could disable it if java.awt.headless=true is given, which --nogui could probably set among its other chores.

Workaround is trivial:

---%<--- META-INF/services/org.netbeans.modules.keyring.spi.EncryptionProvider
Comment 2 Jesse Glick 2010-04-12 21:30:56 UTC
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.)
Comment 3 Quality Engineering 2010-04-13 17:36:41 UTC
Integrated into 'main-golden', will be available in build *201004131450* on (upload may still be in progress)
User: Jesse Glick <>
Log: #182114: disable when headless.