From 65e6de966383fe49a919b1f901d77c7f1e402c9b Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Mon, 18 Jul 2022 11:55:35 +0000 Subject: [PATCH 1/2] fix: ensuring nosplash option only applies for sas.exe Closes #229 --- api/src/controllers/internal/Session.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/controllers/internal/Session.ts b/api/src/controllers/internal/Session.ts index 3b57f16..e2089b1 100644 --- a/api/src/controllers/internal/Session.ts +++ b/api/src/controllers/internal/Session.ts @@ -16,6 +16,7 @@ import { readFile, isWindows } from '@sasjs/utils' +import { processProgram } from './processProgram' const execFilePromise = promisify(execFile) @@ -101,7 +102,7 @@ ${autoExecContent}` session.path, '-AUTOEXEC', autoExecPath, - isWindows() ? '-nosplash' : '', + process.sasLoc.endsWith('sas.exe') ? '-nosplash' : '', isWindows() ? '-icon' : '', isWindows() ? '-nologo' : '' ]) From ff420434aed9cc81b206b4d17c1468db659c9628 Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Mon, 18 Jul 2022 11:57:19 +0000 Subject: [PATCH 2/2] chore: removing line added automatically --- api/src/controllers/internal/Session.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/api/src/controllers/internal/Session.ts b/api/src/controllers/internal/Session.ts index e2089b1..d38e060 100644 --- a/api/src/controllers/internal/Session.ts +++ b/api/src/controllers/internal/Session.ts @@ -16,7 +16,6 @@ import { readFile, isWindows } from '@sasjs/utils' -import { processProgram } from './processProgram' const execFilePromise = promisify(execFile)