https://bugs.kde.org/show_bug.cgi?id=458191

--- Comment #8 from nl.smart <nl.smart.sa...@gmail.com> ---
Hi,

Someone on KDE discuss wrote a patch to solve this issue, thanks a lot to him
for his help, not tested, I'm not dev.

Find below  the KDE discuss link

https://discuss.kde.org/t/krfb-on-wayland-have-to-confirm-remote-control-requested/2650/9

Find below the code to solve the issue

diff --git a/src/remotedesktop.cpp b/src/remotedesktop.cpp
index 9c27b10..100d6f3 100644
--- a/src/remotedesktop.cpp
+++ b/src/remotedesktop.cpp
@@ -136,10 +136,6 @@ uint RemoteDesktopPortal::Start(const QDBusObjectPath
&handle,
         Utils::setParentWindow(remoteDesktopDialog->windowHandle(),
parent_window);
         Request::makeClosableDialogRequest(handle, remoteDesktopDialog.get());
         connect(session, &Session::closed, remoteDesktopDialog.data(),
&RemoteDesktopDialog::reject);
-
-        if (!remoteDesktopDialog->exec()) {
-            return 1;
-        }
     }

     if (session->screenSharingEnabled()) {

The code for Nixos

nixpkgs.overlays = [(final: prev:
    {
      libsForQt5 = prev.libsForQt5.overrideScope (final: prev:
      {
        plasma5 = prev.plasma5.overrideScope (final: prev:
        {
          xdg-desktop-portal-kde = prev.xdg-desktop-portal-kde.overrideAttrs
(prev:
            { patches = (prev.patches or []) ++ [ ./krfb.patch ]; });
        });
        xdg-desktop-portal-kde = final.plasma5.xdg-desktop-portal-kde;
      });
    })];

I hope it will be helpfull to solve it :-)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to