Sending Arguments from Windows Target


#1

I am using process.argv, but these arguments are not showing up:

Instead, I get:

["C:\WT-NMP\electron\electron.exe", "--type=renderer", "--no-sandbox", "--primordial-pipe-token=48A0D453B32DF771F4A02F11145C78DF", "--lang=en-US", "--node-integration=true", "--enable-pinch", "--device-scale-factor=1", "--num-raster-threads=3", "--content-image-texture-target=3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553", "--video-image-texture-target=3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553,3553", "--channel=8436.2.772182253\1718585634", "--mojo-platform-channel-handle=1332", "/prefetch:1"]

Is it possible to get the arguments from the shortcut target?


#2

I am a idiot.

I am supposed to use the process.argv inside the Main Process, not the browser one.

Mod can close… Sorry about this


#3

Closing per request.


#4