Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to run under Wayland #2178

Merged
merged 2 commits into from Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
@@ -1,6 +1,7 @@
{
"name": "chainner",
"productName": "chaiNNer",
"desktopName": "chainner.desktop",
"version": "0.19.4",
"description": "A flowchart based image processing GUI",
"main": ".webpack/main",
Expand Down
15 changes: 15 additions & 0 deletions src/main/arguments.ts
Expand Up @@ -75,6 +75,21 @@ export const parseArgs = (args: readonly string[]): ParsedArguments => {
'An internal developer option to use a different backend. Do not use this as this is not a stable option and may change or disappear at any time',
hidden: true,
},
// These are never used by chaiNNer, they just let the arguments through the arg parser so chromium can parse them.
// Since they aren't used, the defaults don't matter
'ozone-platform-hint': {
type: 'string',
default: '',
description:
"On Linux, set to 'auto' to use Wayland if it's available, and X otherwise",
hidden: true,
},
'enable-features': {
type: 'string',
default: '',
description: 'Enable chromium features',
hidden: true,
},
})
.parserConfiguration({ 'unknown-options-as-args': true })
.parseSync();
Expand Down