Skip to content

Commit d92b461

Browse files
rashedmytPrabhakar Kumar
authored andcommitted
Fixes issue related to showing the MATLAB IDE on Windows while using the "New Desktop for MATLAB" beta.
1 parent a92f71e commit d92b461

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

matlab_proxy/settings.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Copyright 2020-2023 The MathWorks, Inc.
1+
# Copyright 2020-2024 The MathWorks, Inc.
22

3-
from pathlib import Path
43
import os
54
import shutil
65
import socket
76
import ssl
87
import tempfile
98
import uuid
109
import xml.etree.ElementTree as ET
10+
from pathlib import Path
1111

1212
import matlab_proxy
1313
from matlab_proxy import constants
@@ -350,11 +350,9 @@ def get_matlab_settings():
350350
)
351351
matlab_lic_mode = ["-licmode", "file"] if nlm_conn_str else ""
352352
# flag to hide MATLAB Window
353-
flag_to_hide_desktop = (
354-
["-noDisplayDesktop", "-wait", "-log"]
355-
if system.is_windows()
356-
else ["-nodesktop"]
357-
)
353+
flag_to_hide_desktop = ["-nodesktop"]
354+
if system.is_windows():
355+
flag_to_hide_desktop.extend(["-noDisplayDesktop", "-wait", "-log"])
358356
matlab_startup_file = str(Path(__file__).resolve().parent / "matlab" / "startup.m")
359357

360358
matlab_version = get_matlab_version(matlab_root_path)

0 commit comments

Comments
 (0)