Clipboard Manager loses what was copied after source-application was closed

Strange behaviour of copyq or xfce4-clipman:

How to reproduce:

In Manjaro-stable XFCE open a browser, copy some text, close(!!) browser and try immediatly to paste somewhere. The clipboard history loses the activated item.

Long ago but still true for my XFCE: Same issue

What is most confusing me. This issue does not occur on a Debian XFCE 4.16 in VirtualBox or a HD install of Deepin. All with copyq as clipboard-manager

So i think there is something special with Manjaro XFCE

Info:

Generated on 2022-04-18 20:28:1650306489

#################### inxi -Fxzc0 ########################

System:
  Kernel: 5.15.32-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0 Desktop: Xfce v: 4.16.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 81RS v: Lenovo Yoga S740-14IIL serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40709 WIN serial: <superuser required> UEFI: LENOVO
    v: BYCN39WW date: 05/28/2021
Battery:
  ID-1: BAT0 charge: 62.0 Wh (94.9%) condition: 65.3/62.0 Wh (105.3%) volts: 17.0 min: 15.4
    model: LGC L19L4PD2 status: full
CPU:
  Info: quad core model: Intel Core i7-1065G7 bits: 64 type: MT MCP arch: Ice Lake rev: 5 cache:
    L1: 320 KiB L2: 2 MiB L3: 8 MiB
  Speed (MHz): avg: 1172 high: 1202 min/max: 400/3900 cores: 1: 1200 2: 1201 3: 1200 4: 1190
    5: 1100 6: 1140 7: 1202 8: 1150 bogomips: 23968
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Iris Plus Graphics G7 vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0
  Device-2: NVIDIA GP108M [GeForce MX250] vendor: Lenovo driver: nvidia v: 510.60.02
    bus-ID: 2b:00.0
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 3-5:5
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting,nvidia unloaded: nouveau
    gpu: i915 resolution: 1: 1920x1080~60Hz 2: N/A
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Lenovo driver: sof-audio-pci-intel-icl
    bus-ID: 00:1f.3
  Sound Server-1: ALSA v: k5.15.32-1-MANJARO running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 15.0 running: no
  Sound Server-4: PipeWire v: 0.3.49 running: yes
Network:
  Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152 bus-ID: 2-1.4:4
  IF: enp0s13f0u1u4 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: pan1 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-10:8
  Report: rfkill ID: hci0 rfk-id: 3 state: up address: see --recommends
Drives:
  Local Storage: total: 1.86 TiB used: 310.99 GiB (16.4%)
  ID-1: /dev/nvme0n1 vendor: Micron model: MTFDHBA1T0TCK size: 953.87 GiB temp: 54.9 C
  ID-2: /dev/sda type: USB vendor: Western Digital model: WD10EARX-00N0YB0 size: 931.51 GiB
  ID-3: /dev/sdb type: USB vendor: Kingston model: DataTraveler 2.0 size: 14.54 GiB
Partition:
  ID-1: / size: 57.9 GiB used: 32.84 GiB (56.7%) fs: ext4 dev: /dev/nvme0n1p8
  ID-2: /boot/efi size: 259.5 MiB used: 113.6 MiB (43.8%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 16.67 GiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p9
Sensors:
  System Temperatures: cpu: 45.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 260 Uptime: 11m Memory: 15.2 GiB used: 1.91 GiB (12.6%) Init: systemd Compilers:
  gcc: 11.2.0 clang: 13.0.1 Packages: 1749 Client: Unknown Client: wrapper-2.0 inxi: 3.3.15



Compare options for the xfce4-clipman-plugin.

Did you test it on XFCE 4.16?

I just used the default settings. Which setting should i change?

Just bootup manjaro-xfce-21.2.1-220103-linux515.iso and there xfce-clipman works as aspected!

No idea what todo next :frowning:

only google-chrome-stable does clear clipboard on exit. Firefox does NOT do that.

Its not unusual on Linux to do that, but where can i change that?

… giving up :frowning:

Hey guys,
Did anyone find a fix for this? I realized that it happens to me too. And with different sources.

I’m not sure what “this” is, but…

I’m only guessing here, I think there might be some confusion about selection/cut/paste on XFCE using xorg selections: PRIMARY, SECONDARY and CLIPBOARD.

It depends on where you are doing it (applications) and how you are doing it (menu, keyboard, mouse).

If specifically talking about xfce4-clipman: Review the settings link (hint: sync selections).

If specifically talking about making a selection and using the middle-mouse button (PRIMARY) or shift-insert, without the above setting use ctrl-c/ctrl-v or the menu instead (SECONDARY/CLIPBOARD). For example if I open geany, select some text, click the menu Edit > Copy and close geany, I still can go to a terminal where I started nano and use the menu Edit > Paste or if I had another copy of geany running, ctrl-v. This can be verified by looking at xfce4-clipman history after each step. An application can have their own keybindings.

I think this seems to be a missunderstanding in how drag and drop / clipboard work.

In general only links to content are transfered from one program to another.

The clipboard may choose to copy some of it into an own container at some time. But this is not done in general, because this would possible block a lot of RAM.

If you close the program that holds the data, the clipboard may “loose” access to some of it.