Re: [tumbleweed] kde/plasma/wayland: Primary Selection Protocol (middle-mouse to paste)

Sedat Dilek <[email protected]> Mon, 27 Sep 2021 21:58:50 +0200
Newsgroups gmane.linux.suse.kde
Message-ID <CA+icZUWVm490mPRb72V3rnGPGYkUfDT0Rk9WpLs8w4htL3Vkzw@mail.gmail.com>
Hi,

with switching to KDE/Plasma v5.32 beta aka v5.22.90 packages from
Norbert's APT repository middle-mouse-paste now works in
KDE/Plasma/Wayland on my Debian/unstable AMD64 system.

Before I had this workaround under Wayland:

$ git diff /usr/share/applications/org.kde.konsole.desktop
/home/dileks/.local/share/applications/org.kde.konsole.desktop.dileks
diff --git a/usr/share/applications/org.kde.konsole.desktop
b/home/dileks/.local/share/applications/org.kde.konsole.desktop.dileks
index 3ba1e99e65a5..5bd96d79eb65 100644
--- a/usr/share/applications/org.kde.konsole.desktop
+++ b/home/dileks/.local/share/applications/org.kde.konsole.desktop.dileks
@@ -1,7 +1,7 @@
 [Desktop Entry]
 Type=Application
 TryExec=konsole
-Exec=konsole
+Exec=konsole -platform xcb
 Icon=utilities-terminal
 Terminal=false
 Categories=Qt;KDE;System;TerminalEmulator;

I tested cut-n-paste with konsole and kate by copying a URL into
Firefox and vice-versa.

Just wanted to let you know.

Regards,
- Sedat -

[1] https://www.preining.info/blog/2021/09/plasma-5-23-anniversary-edition-beta/

On Wed, Jun 13, 2018 at 5:26 PM Sedat Dilek <[email protected]> wrote:
>
> Hi,
>
> after I tried KDE/Plasma/Wayland on Debian/testing AMD64 I inspired my
> colleague Joop Boonen to test it on OpenSuse/tumbleweed.
>
> Everything was fine besides Primary Selection (middle-mouse to paste),
> so I stopped using Plasma/Wayland.
>
> Joop is able to use primary selection in every application (KDE or GTK).
> So, I was surprised.
> Here on KDE/Plasma 5.12.5 I cannot do that (for example cut-n-paste in
> konsole via middle-mouse paste into firefox).
>
> I asked on the wayland-devel ML [1] with no answer.
> The retired KWin maintainer wanted to have this feature in
> wayland-protocols before implementing it in KWin/Plasma/Wayland.
>
> So, what magic did you do in OpenSuse?
> The Gnome-way?
> [1] has references on how Gnome did it in mutter.
> Or can you point me to the relevant packages with name (sources and patches)?
>
> Thanks in advance.
>
> Regards,
> - Sedat -
>
> [1] https://lists.freedesktop.org/archives/wayland-devel/2018-April/037748.html