Skip to content

Commit

Permalink
Make it possible to run under Wayland (#2178)
Browse files Browse the repository at this point in the history
* Allow passing chromium flags needed for Wayland support (#1527)

* Add desktopName field to package.json to fix missing icon in Wayland
  • Loading branch information
illode committed Sep 3, 2023
1 parent 090d3d7 commit 1a7996d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
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

0 comments on commit 1a7996d

Please sign in to comment.