How to drag and drop text to Konsole?

I want to drag a selected text from the browser to the Konsole. I can see the movement of the text being dragged, but once dropped in the Konsole, it’s not accepted, and the text flies back to the browser.

I seem to remember I’ve done this before, but not now. Wonder what is happening. Any ideas please.

DE: Plasma Wayland
Terminal: Konsole

➜  ~ sudo inxi --admin --verbosity=7 --filter --no-host --width
System:
  Kernel: 6.1.31-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=06f2f8c6-47ea-444a-97a1-44629f02874f rw quiet splash
    resume=UUID=0fc478b2-1d95-466e-bafd-6de6515a989b udev.log_priority=3
  Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.9 wm: kwin_wayland dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: Apple product: MacBookPro12,1 v: 1.0 serial: <filter>
    Chassis: type: 9 v: Mac-E43C1C25D4880AD6 serial: <filter>
  Mobo: Apple model: Mac-E43C1C25D4880AD6 v: MacBookPro12,1 serial: <filter>
    UEFI: Apple v: 430.140.3.0.0 date: 04/18/2022
Battery:
  ID-1: BAT0 charge: 75.9 Wh (99.6%) condition: 76.2/72.3 Wh (105.3%)
    volts: 12.3 min: 11.3 model: SMP bq20z451 type: Li-ion serial: N/A
    status: full cycles: 6
Memory:
  System RAM: available: 7.67 GiB used: 4.35 GiB (56.7%)
  Array-1: capacity: 8 GiB slots: 2 EC: None max-module-size: 4 GiB
    note: est.
  Device-1: DIMM0 type: DDR3 detail: synchronous size: 4 GiB speed: 1867 MT/s
    volts: N/A width (bits): data: 64 total: 64 manufacturer: 0x80AD
    part-no: 0x483943434E4E4E424C54414C41522D4E5544 serial: <filter>
  Device-2: DIMM0 type: DDR3 detail: synchronous size: 4 GiB speed: 1867 MT/s
    volts: N/A width (bits): data: 64 total: 64 manufacturer: 0x80AD
    part-no: 0x483943434E4E4E424C54414C41522D4E5544 serial: <filter>
CPU:
  Info: model: Intel Core i5-5257U socket: BGA1168 (U3E1) note: check bits: 64
    type: MT MCP arch: Broadwell gen: core 5 level: v3 note: check built: 2015-18
    process: Intel 14nm family: 6 model-id: 0x3D (61) stepping: 4
    microcode: 0x2F
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
    L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 3072 high: 3075 min/max: 500/3100 base/boost: 3100/2700
    scaling: driver: intel_cpufreq governor: schedutil volts: 1.1 V
    ext-clock: 25 MHz cores: 1: 3073 2: 3071 3: 3071 4: 3075 bogomips: 21607
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon
    avx avx2 bmi1 bmi2 bts clflush cmov constant_tsc cpuid cpuid_fault cx16
    cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority
    flush_l1d fma fpu fsgsbase fxsr ht ibpb ibrs ida intel_pt invpcid
    invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe msr mtrr
    nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln
    pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep smap
    smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow
    tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xsave xsaveopt
    xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Iris Graphics 6100 vendor: Apple driver: i915 v: kernel
    arch: Gen-8 process: Intel 14nm built: 2014-15 ports: active: eDP-1
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:162b
    class-ID: 0300
  Display: server: X.Org v: 23.1.1 with: Xwayland v: 23.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: iris gpu: i915 display-ID: :1 screens: 1
  Screen-1: 0 s-res: 2560x1600 s-dpi: 96 s-size: 677x423mm (26.65x16.65")
    s-diag: 798mm (31.43") monitors: <missing: xrandr>
  Monitor-1: eDP-1 model: Apple Color LCD built: 2013 res: 2560x1600 dpi: 227
    gamma: 1.2 size: 286x179mm (11.26x7.05") diag: 337mm (13.3") ratio: 16:10
    modes: 2560x1600
  API: OpenGL v: 4.6 Mesa 23.0.4 renderer: Mesa Intel Iris Graphics 6100
    (BDW GT3) direct-render: Yes
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Apple driver: snd_hda_intel
    v: kernel bus-ID: 00:03.0 chip-ID: 8086:160c class-ID: 0403
  Device-2: Intel Wildcat Point-LP High Definition Audio
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9ca0
    class-ID: 0403
  Device-3: Broadcom 720p FaceTime HD Camera driver: N/A pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 02:00.0 chip-ID: 14e4:1570 class-ID: 0480
  API: ALSA v: k6.1.31-2-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.70 status: n/a (root, process) with: wireplumber
    status: active tools: pw-cli,wpctl
  Server-3: PulseAudio v: 16.1 status: active (root, process)
    with: pulseaudio-alsa type: plugin tools: pacat,pactl
Network:
  Device-1: Broadcom BCM43602 802.11ac Wireless LAN SoC vendor: Apple
    driver: brcmfmac v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    bus-ID: 03:00.0 chip-ID: 14e4:43ba class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Apple Bluetooth Host Controller driver: btusb,hid-generic,usbhid
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-3:2
    chip-ID: 05ac:8290 class-ID: fe01
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 233.76 GiB used: 71.75 GiB (30.7%)
  ID-1: /dev/sda maj-min: 8:0 vendor: Apple model: SSD SM0256G
    family: SD/SM/TS...E/F/G SSDs size: 233.76 GiB block-size: physical: 4096 B
    logical: 512 B sata: 3.0 speed: 6.0 Gb/s tech: SSD serial: <filter>
    fw-rev: PA0Q temp: 48 C scheme: GPT
  SMART: yes state: enabled health: PASSED on: 1y 186d 20h cycles: 39776
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 48.83 GiB size: 47.76 GiB (97.81%) used: 13.32 GiB (27.9%)
    fs: ext4 block-size: 4096 B dev: /dev/sda3 maj-min: 8:3 label: N/A
    uuid: 06f2f8c6-47ea-444a-97a1-44629f02874f
  ID-2: /boot/efi raw-size: 1001 MiB size: 999 MiB (99.80%)
    used: 288 KiB (0.0%) fs: vfat block-size: 512 B dev: /dev/sda1 maj-min: 8:1
    label: N/A uuid: C52E-DD5A
  ID-3: /home raw-size: 174.19 GiB size: 170.4 GiB (97.82%)
    used: 57.04 GiB (33.5%) fs: ext4 block-size: 4096 B dev: /dev/sda4
    maj-min: 8:4 label: N/A uuid: 3c05e9c8-a423-467e-b26c-b3e64d78c4b5
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 9.77 GiB used: 1.39 GiB (14.2%)
    priority: -2 dev: /dev/sda2 maj-min: 8:2 label: N/A
    uuid: 0fc478b2-1d95-466e-bafd-6de6515a989b
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 11 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 1-3:2 info: Apple Bluetooth Host Controller
    type: keyboard,mouse,bluetooth driver: btusb,hid-generic,usbhid interfaces: 6
    rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 chip-ID: 05ac:8290
    class-ID: fe01
  Device-2: 1-5:3 info: Apple Internal Keyboard/Trackpad (ISO)
    type: HID,keyboard,mouse driver: apple,bcm5974,usbhid interfaces: 5 rev: 2.0
    speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 500mA
    chip-ID: 05ac:0273 class-ID: 0300 serial: <filter>
  Hub-2: 2-0:1 info: super-speed hub ports: 4 rev: 3.0
    speed: 5 Gb/s (596.0 MiB/s) lanes: 1 mode: 3.2 gen-1x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 91.0 C pch: 74.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 209 Uptime: 2h 1m wakeups: 2 Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 1270 libs: 375 tools: pamac,yay pm: flatpak
  pkgs: 0 Shell: Zsh (sudo) v: 5.9 default: Bash v: 5.1.16 running-in: konsole
  inxi: 3.3.27

Which DE ?
Which terminal ?


Welcome to Manjaro! :smiling_face_with_three_hearts:

  1. Please read the information behind this link. It will help you to post necessary information.
  1. Please press the three dots below your post and then press the :pencil2:
  • If you give us information about your system, we can see what we’re talking about and make better suggestions.
  • You can do this by using inxi in a terminal or in console.
sudo inxi --admin --verbosity=7 --filter --no-host --width
  • Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
  • Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
  1. Copy the output from inxi (including the command) and paste it into your post.
  • To make it more readable, add 3 backticks ``` on an extra line before and after the pasted text.

Have you already :mag: for your problem in the forum ? (Wisdom lies in reading :wink: )

hi @andreas85 , I edited the post as you directed.

Use the middle button of the mouse. So select it and then insert with a middle click.

2 Likes

Ctrl+Shift+V will allow you to paste text in Konsole, or as @megavolt says, use the middle-click of your mouse.

Note: The text will not be inserted where the mouse cursor is, but where the terminal cursor is — something to be mindful of.

2 Likes

Hold Ctrl while dragging the selected text to Konsole

You are right - works with wayland too .

1 Like

I can just simply drag and drop text in Konsole in KDE, nothing special needed. I’m not on Wayland though so probably the CTRL+drag would work, can’t test.

The middle button works.

Ctrl+Shift+V doesn’t work without first copy selected text.

Hold Ctrl while dragging doesn’t work for me.

When holding CTRL drag&drop works in XFCE :smiling_face_with_three_hearts:
(I did not know this till today)

(But without holding CTRL drag&drop also works with my terminal in XFCE) :flushed:

Seems this is the work of kitty :wink:

That depends on your clipboard settings.

1 Like

Yes, the clipboard setting, and the Konsole setting can do various things. In Konsole profile you can set what the middle mouse button does (paste from clipboard or paste from selection), and in Klipper (default KDE clipboard) you can set it so the selection is put into the clipboard.

To get back on the thread, who on KDE here can NOT drag and drop text in Konsole? Because it just works here. There is nothing to do at all on my side. I select text in Firefox, I drag it into Konsole, text is then in Konsole. Maybe this is because of Wayland if it doesn’t work I would guess.

//EDIT: but apparently, not a Wayland issue as linux-aarhus just edited:

So I don’t know what you all are talking about with your solutions for this non issue.

Does it make a difference with a mouse and a touchpad? I am dragging with touchpad, and it’s not working, with or without Ctrl key.

Does it work between other GUI-programs ?

From browser to Kate: no

from Kate to Konsole: yes

from Konsole to Kate: yes with Ctrl

from Kate to Google search bar in browser: yes

from Kate to Browser address bar: yes

That seems to be specific to your browser then, I don’t really have any idea, but on my side it seems to work all the time basically.

You can try to create a new user, login to this user and see if there is the same behavior or if it works in all cases. If the new user works good, then you can investigate in your user configuration what is causing the problem.

1 Like

I created a brand new account, logged in to the Plasma Wayland DE, dragged text from the brand new Firefox session to Konsole. No it doesn’t work.

But if I log in to Plasma X11 DE, then the dragging works.

Coming back to my own account, dragging works on the X11 DE, but not on the Wayland.

OK, so Linux-aarhus said it works on his side apparently on Wayland, maybe he can confirm again that he can drag and drop from Firefox to Konsole, then it may simply be a missing package to find and install. I don’t use Wayland sorry I can’t test.