Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/6964e172-93a0-8013-9baf-b12d96b905a2
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: This is a classic Discord-on-Linux issue, not a CachyOS-only problem. === This is a classic Discord-on-Linux issue, not a CachyOS-only problem. Since Discord Web works in Chrome but the Discord app doesn’t, the problem is almost certainly Wayland + Electron + PipeWire related. I’ll give you fixes in order of likelihood. Don’t restart unless I explicitly say so. ==== KDE Plasma on CachyOS defaults to Wayland. ==== Run: <syntaxhighlight lang="bash">echo $XDG_SESSION_TYPE </syntaxhighlight> If it says: * wayland → continue (this is the problem) * x11 → tell me (different fix) ==== Discord’s screen sharing is broken on native Wayland. ==== ===== <syntaxhighlight lang="bash">pkill Discord ===== </syntaxhighlight> ===== <syntaxhighlight lang="bash">DISCORD_USE_WAYLAND=0 discord ===== </syntaxhighlight> Now try streaming. ✅ If this works → we’ll make it permanent ❌ If not → go to step 3 ==== So you don’t have to run commands every time. ==== <syntaxhighlight lang="bash">cp /usr/share/applications/discord.desktop ~/.local/share/applications/ nano ~/.local/share/applications/discord.desktop </syntaxhighlight> Find this line: <syntaxhighlight>Exec=/usr/bin/discord </syntaxhighlight> Change it to: <syntaxhighlight>Exec=env DISCORD_USE_WAYLAND=0 /usr/bin/discord </syntaxhighlight> Save and exit: * Ctrl + O * Enter * Ctrl + X Log out & log back in (not full reboot). ==== Run: ==== <syntaxhighlight lang="bash">sudo pacman -S --needed pipewire pipewire-pulse wireplumber xdg-desktop-portal xdg-desktop-portal-kde </syntaxhighlight> Then restart only PipeWire, not your system: <syntaxhighlight lang="bash">systemctl --user restart pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-kde </syntaxhighlight> ==== In Discord: ==== <syntaxhighlight>Settings → Advanced → Hardware Acceleration → OFF </syntaxhighlight> Close Discord → reopen → test stream again. ==== - Discord Web (Chrome) → fully supports PipeWire + Wayland ==== * Discord App → Electron + outdated Wayland support = broken capture * Chrome handles screen portals correctly; Discord app often doesn’t This is Discord’s fault, not CachyOS or KDE. ==== Choose ONE: ==== ===== - Use Discord Web in Chrome ===== * Best stability, zero hacks ===== - Keep Discord app forced to XWayland ===== * Slightly worse performance, but works ==== Reply with: ==== # Output of echo $XDG_SESSION_TYPE # Does Step 2 work or not? I’ll dial it in perfectly after that.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)