Skip to content

Cannot open Matlab desktop when using "batch" option #6362

@matl-hsk

Description

@matl-hsk

new_argv = add_single_argument(new_argv, &current_size, "-batch");

@nilsjor
Unfortunately the change introduced in commit b43d3cd prevents (at least on Mac) to open Matlab desktop.
If Matlab is started with the argument "-batch" the command "desktop" cannot be run and produced the error

Error using matlab.internal.lang.capability.Capability.require
Support for user input is required, which is not available on this platform.
Error in desktop

Hence this should be reverted to the arguments "-nodisplay", "-nosplash", "-nodesktop", "-r" instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions