Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ksnip cannot capture on KDE wayland, alert No image provided but one was expected. #1026

Open
zyf0330 opened this issue Feb 20, 2024 · 6 comments
Labels

Comments

@zyf0330
Copy link

zyf0330 commented Feb 20, 2024

Describe the bug
A clear and concise description of what the bug is.
After switch to KDE wayland, Ksnip fails to capture and alert Critical msg "No image provided but one was expected.".
To Reproduce
Steps to reproduce the behavior:

  1. use KDE wayland
  2. capture with any kind of way

Expected behavior
a image is captured

Screenshots
image

Desktop (please complete the following information):

  • OS: Linux
  • Distribution in case of Linux: Ubuntu
  • Window System in case of Linux: Wayland
  • ksnip version: 1.10.1-1
  • How did you install ksnip: apt

Additional context
It works on X11.
It can capture the whole screen when enable Force Generic Wayland(xdg-desktop-portal) Screenshot, but I want to capture rectangular area.

@zyf0330 zyf0330 added the bug label Feb 20, 2024
@joshuar
Copy link

joshuar commented Mar 1, 2024

I have the same problem. I also noticed in the journal the following errors when I attempt to capture a screenshot:

kwin_wayland[5831]: kwin_effect_screenshot: Process 78335 tried to take a screenshot without being granted to DBus interface "org.kde.kwin.Screenshot"
Mar 01 10:40:56 whiteward.lan plasmashell[79608]: Critical: Unable to show image: No image provided but one was expected.
Mar 01 10:40:56 whiteward.lan plasmashell[79608]: Warning: Wayland does not support QWindow::requestActivate()
Mar 01 10:40:56 whiteward.lan plasmashell[79608]: Warning: Wayland does not support QWindow::requestActivate()
Mar 01 10:40:56 whiteward.lan plasmashell[6031]: Could not find the Plasmoid for Plasma::FrameSvgItem(0x55aad9749be0) QQmlContext(0x55aad81a3420) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml")
Mar 01 10:40:56 whiteward.lan plasmashell[6031]: Could not find the Plasmoid for Plasma::FrameSvgItem(0x55aad9749be0) QQmlContext(0x55aad81a3420) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml")

@joshuar
Copy link

joshuar commented Mar 1, 2024

Just discovered this is likely a duplicate or similar issue to #727?

@robertfalkenberg
Copy link

Also having this issue after Archlinux system update today:

Warning: Unable to find any translation files for ksnip.
Warning: Unable to find any translation files for kImageAnnotator.
Warning: Wayland does not support QWindow::requestActivate()
Warning: Wayland does not support QWindow::requestActivate()
Warning: This plugin does not support setting window opacity
Critical: Unable to show image: No image provided but one was expected.
Warning: Wayland does not support QWindow::requestActivate()
Warning: Wayland does not support QWindow::requestActivate()
ksnip 1.10.1-4
plasma-desktop 6.0.1-1

@samtech09
Copy link

Getting same issue on KDE plasma 6.0.2 with ksnip 1.10.1

@32bitx64bit
Copy link

Issue can be fixed by enabling Force generic wayland under the image grabber settings.

Ksnip still doesn't have the ability to do much other than capturing full screen on KDE. Hopefully this gets resolved.

@FdelS
Copy link

FdelS commented May 6, 2024

Same error on KDE plasma 6.0.4 - wayland on flatpak version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants