flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:
https://flameshot.org
GNU General Public License v3.0
25.11k stars 1.61k forks source link

Copying to clipboard does not work on sway #3601

Open Freemason-12 opened 6 months ago

Freemason-12 commented 6 months ago

Flameshot Version

Flameshot 12.1.0

Installation Type

Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)

Operating System type and version

Ubuntu 24.04

Description

When try to copy a screenshot section to clipboard these errors appear:

qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

and the journal logs say:

May 11 14:03:19 ThinkPad-T460 org.flameshot.Flameshot[7692]: qt.qpa.xcb: could not connect to display
May 11 14:03:19 ThinkPad-T460 org.flameshot.Flameshot[7692]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
May 11 14:03:19 ThinkPad-T460 org.flameshot.Flameshot[7692]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
May 11 14:03:19 ThinkPad-T460 org.flameshot.Flameshot[7692]: Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Steps to reproduce

  1. run flameshot gui
  2. get some arbitrary portion of the screen
  3. press a "Copy to Clipboard" button

Screenshots or screen recordings

No response

System Information

System:
  Host: ThinkPad-T460 Kernel: 6.8.0-31-generic arch: x86_64 bits: 64
  Desktop: Sway v: 1.9 Distro: Ubuntu 24.04 LTS (Noble Numbat)
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] driver: i915 v: kernel
  Device-2: Bison ThinkPad P50 Integrated Camera driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.6
    compositor: Sway v: 1.9 driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris gpu: i915 resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: iris,swrast
    platforms: wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.0.5-1ubuntu1
    renderer: Mesa Intel HD Graphics 520 (SKL GT2)
wait-what commented 6 months ago

+1, just wanted to add that this isn't a recent regression. It's been broken for months now (I'm using aur/flameshot-git). It saves the screenshot just fine, but nothing gets copied to the clipboard, as in, it doesn't even overwrite the current clipboard contents.

Freemason-12 commented 6 months ago

@wait-what I wish there was an Ubuntu package for the git version though (I'm using Ubuntu 24.04)

machitgarha commented 3 months ago

8 upvotes reached. Can someone please remove the "Unconfirmed Bug" label?

shinysquirrel04 commented 2 months ago

I have the exact same bug here I use debian with kde wayland

adonisRodxander commented 3 weeks ago

Same issue

DJManas commented 1 week ago

I had this issue today, but in my case I had to install wl-clipboard package. I am not saying, its your issue, just giving solution that worked for me.

Gentoo linux flameshot: 12.1.0 sway: 1.10