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
--ozone-platform-hint flag not working #664
Comments
@red5h4d0w can you please fill this out further and indicate what you're trying to achieve? We've been talking about this a bit over in #591 and some users have got fractional scaling work with this set of parameters:
|
I've edited the missing part of the sentence. |
I'm not familiar enough with this new platform support or how stable things are, so I'm reluctant to try and force this by default especially since this is our first release where this is working. Can you talk to the workarounds you're doing to the |
I'd like the flag I'm editing the |
An idea that might help unblock further experimentation here could be to allow us to bake some settings behind an environment variable. Does this approach appeal to anyone, aside from the caveats that the environment variables need to be set outside of the shell environment to be picked up by the OS app launcher? diff --git a/app/src/main-process/main.ts b/app/src/main-process/main.ts
index 3c2e290ea..bff1b1f43 100644
--- a/app/src/main-process/main.ts
+++ b/app/src/main-process/main.ts
@@ -298,6 +298,14 @@ function setAsDefaultProtocolClient(protocol: string) {
}
}
+if (process.env.GITHUB_DESKTOP_EXPERIMENT_WAYLAND_SUPPORT) {
+ log.info(
+ `GITHUB_DESKTOP_EXPERIMENT_WAYLAND_SUPPORT environment variable set, setting command line flags`
+ )
+ app.commandLine.appendSwitch('enable-features', 'UseWaylandDecorations')
+ app.commandLine.appendSwitch('ozone-platform', 'wayland')
+ // ...
+}
+
if (process.env.GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION) {
log.info(
`GITHUB_DESKTOP_DISABLE_HARDWARE_ACCELERATION environment variable set, disabling hardware acceleration` |
Since (newer) electron uses the aforementioned flag for this use case, i believe it would be better to wait till 20.0.0 (or 19.0.10) makes it to GitHub Desktop. These versions should have the upstream commit for this flag to work. |
To use It's surprisingly fine for github-desktop 3.0.5-linux1, as it uses a older electron version. |
Just tested the newest release and this issue has been solved. |
Describe the bug
It seems that running
github-desktop --ozone-platform-hint=auto
doesn't lauch on wayland session on my installation, but rather on XWayland.Version & OS
Arch official Repo 2.9.9RC1
.appimage 2.9.9RC2
on
OS: EndeavourOS
DE: Gnome
WM: Gnome-mutter
Machine: Framework DIY Edition i7-1165 Mainboard
Steps to reproduce the behavior
github-desktop --ozone-platform-hint=auto
Expected behavior
Should launch in wayland mode.
Actual behavior
Launches in XWayland mode.
Confirmed using xwininfo.
Logs
Output when the command is run
The text was updated successfully, but these errors were encountered: