Skip to content

Commit 07346f9

Browse files
author
Prabhakar Kumar
committed
Hide MATLAB Command Prompt on Windows.
1 parent 63680a7 commit 07346f9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

matlab_proxy/settings.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pathlib import Path
1212

1313
import matlab_proxy
14-
from matlab_proxy.util import mwi
14+
from matlab_proxy.util import mwi, system
1515
from matlab_proxy.util.mwi import environment_variables as mwi_env
1616
from matlab_proxy.util.mwi import token_auth
1717

@@ -156,6 +156,11 @@ def get(config_name=matlab_proxy.get_default_config_name(), dev=False):
156156
)
157157
matlab_lic_mode = ["-licmode", "file"] if nlm_conn_str else ""
158158

159+
# flag to hide MATLAB Window
160+
flag_to_hide_desktop = (
161+
"-noDisplayDesktop" if system.is_windows() else "-nodesktop"
162+
)
163+
159164
# All config related to matlab-proxy will be saved to user's home folder.
160165
# This will allow for other user's to launch the integration from the same system
161166
# and not have their config's overwritten.
@@ -166,7 +171,7 @@ def get(config_name=matlab_proxy.get_default_config_name(), dev=False):
166171
"matlab_cmd": [
167172
"matlab",
168173
"-nosplash",
169-
"-nodesktop",
174+
flag_to_hide_desktop,
170175
"-softwareopengl",
171176
*matlab_lic_mode,
172177
"-r",

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def run(self):
6565

6666
setuptools.setup(
6767
name="matlab-proxy",
68-
version="0.5.11",
68+
version="0.5.12",
6969
url=config["doc_url"],
7070
author="The MathWorks, Inc.",
7171
author_email="[email protected]",

0 commit comments

Comments
 (0)