question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`webcord-git`: Not running in Wayland

See original GitHub issue

Aknowledgements

  • I have checked that there’s no other issue describing the same or similar problem that I currently have, regardless if it has been closed or open.

  • I can confirm that this is not an issue with the Discord website, but it is a problem specific to the WebCord itself. I have tested if this bug occurs on Chromium/Chrome or any other Chromium-based browser that uses unpatched/upstream Chromium engine.

  • I have tried running the build from the master branch and it does not have any fixes implemented according to my issue.

  • My issue describes one of the unstable and/or not fully implemented features.

  • I have found a workaround to mitigate or temporarily fix this issue in affected releases (please write it in Additional context section below).

Operating System / Platform

🐧️ Linux

Operating system architecture

x64 (64-bit Intel/AMD)

Electron version

v19.0.10

Application version

v3.6.0

Bug description

I am running WebCord with the command webcord --ozone-platform=wayland, and it opens as an XWayland window. Is there a way to force it to start in Wayland? I looked at optimize.ts and it appears this command line flag is all that is needed, but it’s either not working or not being picked up. XDG_SESSION_TYPE is set to wayland

Additional context

I am running Arch Linux using the AMD open source drivers on a ROG Zephyrus G14 GA402 laptop, and the Hyprland compositor.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
SpacingBat3commented, Sep 30, 2022

OK then, I guess that is going to be expected. You have to specify any Wayland-enabling flag, like --ozone-hint=auto, --ozone-hint=wayland or even the older --ozone-platform=wayland (when running webcord from the CLI or by putting it into appropiate .desktop file). Native Wayland is experimental in WebCord due to upsteam bugs present in Electron and Chromium. From what I know, it has improved greatly over the time, but I still don’t want to force native Wayland because upstream does not treat it as enough stable anyway and it’s better to go back to XWayland in case of the bugs. Just in case, WebCord has its integrations in both XWayland and Wayland, so there should be no much difference between using them at least on that reason.

2reactions
SpacingBat3commented, Aug 8, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Wayland rendering backend not working · Issue #159 - GitHub
WebCord does launch using --ozone-platform and I can see that it is running native wayland and mostly works however there are some issues:...
Read more >
How to debug Wayland problems - Fedora Docs
If you're running an X11 session, not a Wayland session, your problems are not related to Wayland. It's a bug either in that...
Read more >
How to know whether Wayland or X11 is being used
If you're running Gnome, run the command r in the Alt + F2 menu. ... but in Wayland it will give the message...
Read more >
1274451 – sudo with graphical apps doesn't work on wayland
Right, I guess the question is should UI applications under wayland be allowed to run as root? It's something we've always really discouraged...
Read more >
Wayland - ArchWiki - Arch Linux
Wayland is a display server protocol. It is aimed to become the successor of the X Window System. You can find a comparison...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found