You are not logged in.
**Sway Version:**
- sway version 1.10.1
- **Debug Log:**
<script src="https://gist.github.com/Saido0/dedd4de4b7b6c3192c643c264f3f217e.js"></script>
- **Configuration File:**
default config file
- **Description:**
When I want to screen share in discord it gives me an error saying:
"Screen Sharing
Whoops, something went wrong. Give it another try?"
And when running discord from the terminal (using this command: "discord --enable-features=WebRTCPipeWireCapturer --ozone-platform-hint=auto") I get spams of this error "[26660:0512/010441.416491:ERROR:browser_main_loop.cc(276)] Gtk: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed"
I suspected that it was because of xdg-desktop-portal-gtk so I stopped and masked it using systemd and tried to start xdg-desktop-portal-wlr manually and watched it in terminal while launching discord and tried to screen share and I got this:
"May 12 01:35:13 saido systemd[5494]: Starting Portal service (wlroots implementation)...
May 12 01:35:13 saido systemd[5494]: Started Portal service (wlroots implementation).
May 12 01:39:30 saido systemd[5494]: Stopping Portal service (wlroots implementation)...
May 12 01:39:30 saido systemd[5494]: Stopped Portal service (wlroots implementation)."
Apparently it's crashing as soon as I try to open it.
I also added this "exec=/usr/bin/discord --enable-features=WebRTCPipeWireCapturer --ozone-platform-hint=auto" in /usr/share/applications/discord.desktop
I tried to solve it for a couple of hours but didn't get anything to change.
When I launched discord (only typed discord in terminal, without flags) and I got this "[36938:0512/031347.986422:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!" when I tried to open a screen share. So I tried to enable allow_tearing and/or adaptive_sync from the sway config, the allow_tearing turned on but nothing changed and adaptive_sync didn't even turned on.
My system is Asus Vivobook S14 with radeon 780m graphics and 6.14.4-arch1-2 karnel. I'm running regular discord but also tried vesktop, I have mesa drives, pipewire and vulkan-radeon.
The screen share works just fine in gnome.
Edit: somehow when I went away for a couple of hours and went back I found it fixed, I can't choose what to stream but it streams my primary display. I think it is the desktop portal wlr, I don't know why it was't working first even with a restart. It is't the discord flagges because I tried with and without them.
Last edited by saido (2025-05-21 06:35:02)
Offline