Skip to content

Add ability to set switch value in manifest cliFlags property#37

Merged
theolivenbaum merged 1 commit intotheolivenbaum:mainfrom
tareqimbasher:patch-1
Jun 30, 2025
Merged

Add ability to set switch value in manifest cliFlags property#37
theolivenbaum merged 1 commit intotheolivenbaum:mainfrom
tareqimbasher:patch-1

Conversation

@tareqimbasher
Copy link
Copy Markdown
Contributor

main.js adds command line switches to the spawned electron process if "cliFlags" property has values in electron.manifest.json, but it does not allow setting a value for the switch. This change splits each item in the cliFlags array on the first '=' and sets the switch value, if provided.

This came up due to the new Electron 36 breaking change on Linux when running GNOME and attempting to apply the fix.

main.js adds command line switches to the spawned electron process if "cliFlags" property has values in electron.manifest.json, but it does not allow setting a value for the switch. This change splits each item in the cliFlags array on the first '=' and sets the switch value, if provided.
@tareqimbasher
Copy link
Copy Markdown
Contributor Author

@theolivenbaum any chance this can get merged soon? It is a blocker right now that's stopping a PR on my end to migrate from Electron.NET to ElectronSharp.

It's a simple change that I hope won't take too long to review. Please and thank you!

@theolivenbaum theolivenbaum merged commit e2e6df8 into theolivenbaum:main Jun 30, 2025
@tareqimbasher
Copy link
Copy Markdown
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants