Wayland and audio is fixed, but only on the canary branch for the moment, this isnt lazy either, they changed the whole screenshare flow to suit linux's permission prompts

  • tiramichu@lemm.ee
    ·
    edit-2
    25 days ago

    I was almost convinced they were keeping this broken on purpose, it's been broken so long. Like, years long.

    It was broken so long I honestly wouldn't have been surprised if news surfaced that Discord was taking back-handers from Microsoft under the table to keep it broken. With steam working so well on Linux now, broken discord streaming without actual working audio share was one of the last things that posed a hurdle for gamers ditching Windows.

    (In the meantime, thank you Vesktop for your service <3)

    • Blisterexe@lemmy.zip
      hexagon
      ·
      25 days ago

      I saw something from a discord dev (can't find it, so grain of salt) about how there was interest recently to do it, but they'd have to work on other stuff that affected everyone first, and they'd probably get it done by q4 2024, guess they were right.

      I think before then the whole linux graphics and audio space hadn't really stabilized enough for them to be interested.

    • DefinitelyNotAPhone [he/him]
      ·
      25 days ago

      It was 100% because the existing Electron version they were using was ancient, a giant pain in the ass to update, and represents exactly zero revenue for them so they hadn't bothered putting anyone on fixing it. Every tech company has the ticking time bomb in the corner like that.

    • blobjim [he/him]
      ·
      25 days ago

      Screen sharing infrastructure (for Wayland) in Linux was still in development recently. Maybe they just wanted to be able to use newer APIs?

        • blobjim [he/him]
          ·
          24 days ago

          Just being supported as a protocol doesn't mean everything is done. Chromium probably didn't have it until years after that, and operating systems may not have implemented it umtil more recently.

          • Zamundaaa@discuss.tchncs.de
            ·
            24 days ago

            Chromium had it for qhite a while, but it isn't really relevant... Discord's implementation of screen sharing was custom on X11, if they had used the one that comes with Electron, this would've worked far earlier.

            operating systems may not have implemented it umtil more recently

            DEs that had a Wayland session (aka Gnome and Plasma) supported it very soon after the portal was made.

            The real reason won't be anything external, but something in the company. Usually it's just that Linux isn't a priority for a given company, so even if there's a motivated engineer that wants to take care of it, it's hard justifying to their managers why they need to spend a lot of time on it.

            This isn't exclusive to Discord, to use a very similar example, Zoom is kinda worse. In the past, Zoom misused a Gnome screenshot API to do screen casting very badly, and recently they ported to the desktop portal - not because they had a choice, but because Gnome locked down the API they were using. Screen casting still only works on Gnome though, because they still check for the desktop name. If you set it to Gnome, it works perfectly fine everywhere else too!

            All it would take to fix that problem is removing an if statement, yet, despite many complaints, it hasn't happened... because no big customer has complained, so it's just one of the unimportant Linux bugs.

  • flashgnash@lemm.ee
    ·
    24 days ago

    I've been screen sharing from discord on hyprland for months, it wasn't already working?

    • Faresh@lemmy.ml
      ·
      24 days ago

      Last I checked I could only share specific windows, not the whole screen. Later there was also an update with a window or screen selection dialogue that didn't work at all, I think. After that I stopped using it on wayland.

      • flashgnash@lemm.ee
        ·
        24 days ago

        I regularly share my whole screen

        I have an issue with the dialog box popping up multiple times but that's it, still works

        The only caveat is window specific sharing often doesn't work because of how Wayland works

  • Saff@lemmy.ml
    ·
    24 days ago

    Oh awesome, I’ve been using the webcord version as the others were all shit for screen sharing. Having said that even webcord also has weird sound issue sim hoping are fixed with this.

  • TheDrink [he/him]
    ·
    25 days ago

    Wayland and audio is fixed, but only on the canary branch

    I've been using the canary branch exclusively for about a year because of audio issues on the main one, I would genuinely be ecstatic if they finally ported over the fix because for some reason the canary branch refuses to auto upgrade and I have to do it manually every time.