File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -305,6 +305,20 @@ const createWindow = () => {
305305 } ) ;
306306} ;
307307
308+ // Allow passing command line parameters/switches to electron
309+ // https://electronjs.org/docs/api/chrome-command-line-switches
310+ // used for Kerberos support
311+ // Usage e.g. MACOS
312+ // $ Franz.app/Contents/MacOS/Franz --auth-server-whitelist *.mydomain.com --auth-negotiate-delegate-whitelist *.mydomain.com
313+ const argv = require ( 'minimist' ) ( process . argv . slice ( 1 ) ) ;
314+
315+ if ( argv [ 'auth-server-whitelist' ] ) {
316+ app . commandLine . appendSwitch ( 'auth-server-whitelist' , argv [ 'auth-server-whitelist' ] ) ;
317+ }
318+ if ( argv [ 'auth-negotiate-delegate-whitelist' ] ) {
319+ app . commandLine . appendSwitch ( 'auth-negotiate-delegate-whitelist' , argv [ 'auth-negotiate-delegate-whitelist' ] ) ;
320+ }
321+
308322// This method will be called when Electron has finished
309323// initialization and is ready to create browser windows.
310324// Some APIs can only be used after this event occurs.
You can’t perform that action at this time.
0 commit comments