Skip to content

Commit e3d474b

Browse files
committed
JBDS-4178 pass password in env var for first devstudio start
1 parent 4d6921e commit e3d474b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

browser/pages/start/controller.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ class StartController {
3434

3535
launchDevstudio_darwin() {
3636
let devStudioAppPath = path.join(this.installerDataSvc.jbdsDir(), 'Devstudio.app');
37-
Util.executeCommand(`open ${devStudioAppPath}`,1).then(()=>{
37+
let options = {
38+
env : Object.assign({},Platform.ENV)
39+
};
40+
options.env['rhel.subscription.password'] = this.installerDataSvc.password;
41+
Util.executeCommand(`open ${devStudioAppPath}`, 1, options).then(()=>{
3842
Logger.info('devstudio started sucessfully');
3943
this.exit();
4044
}).catch((error)=>{

0 commit comments

Comments
 (0)