mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-22 21:18:44 +08:00
packages.plasma: patch krfb dialog
This commit is contained in:
parent
f5a153d1a3
commit
103a78431d
@ -97,5 +97,17 @@ inputs:
|
||||
{ configFile.kscreenlockerrc.Daemon.Autolock.value = false; }
|
||||
];
|
||||
}];
|
||||
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;
|
||||
});
|
||||
})];
|
||||
};
|
||||
}
|
||||
|
15
modules/packages/plasma/krfb.patch
Normal file
15
modules/packages/plasma/krfb.patch
Normal file
@ -0,0 +1,15 @@
|
||||
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()) {
|
Loading…
Reference in New Issue
Block a user