Skip to content

appArgs inside Configuration file doesn't allow whitespaces ( ) or quotation marks (") #111

@carvedcow

Description

@carvedcow

Hi, I'm trying to use app arguments for my executable electron application but I'm having 2 issues.

  1. If an argument contains a white space, it would automatically add quotation marks around the argument:
{
    "mainWindowUrl": "./index.html",
    "appArgs": ["--test:1"]
}
vs
{
    "mainWindowUrl": "./index.html",
    "appArgs": ["--test: 1"]
}

Here is the app's arguments in Task Manager:
image
vs
image

  1. Quotation marks aren't escaped properly and breaks escape characters:
{
    "mainWindowUrl": "./index.html",
    "appArgs": ["--location=C:\\"]
}
vs
{
    "mainWindowUrl": "./index.html",
    "appArgs": ["--location=\"C:\\\""]
}

image
vs
image

Thank you very much for your time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions