Thanks to visit codestin.com
Credit goes to github.com

Skip to content

First cli invocation won't copy image to clipboard #764

@magpie514

Description

@magpie514

Describe the bug
I use ksnip by binding a key that launches ksnip -r for a rectangular selection. I configured it so it copies the image to the clipboard, but now (with current continuous build, deb version, ksnip-1.10.0-continuous.deb) when ksnip is not already running, it won't copy the image, it has to be activated (ksnip -r) again for it to copy.

To Reproduce
Steps to reproduce the behavior:

  1. Close ksnip entirely (no tray, etc), ksnip must be set to automatically copy screenshots to clipboard.
  2. ksnip -r
  3. Nothing will be copied to the clipboard.
  4. ksnip -r
  5. Now it is copied to the clipboard.

Expected behavior
Image used to be copied to clipboard even if ksnip was not running.

Desktop (please complete the following information):

  • OS: Linux
  • Distribution in case of Linux: Ubuntu 21.10
  • Window System in case of Linux: X11 (KDE Plasma Desktop)
  • ksnip version: 1.10.0-continuous, Build: 1-809c719
  • How did you install ksnip: ksnip-1.10.0-continuous.deb

Additional context
As mentioned, it used to work, so this might be some form of regression. It could be circumvented if ksnip is launched automatically on boot, but I prefer it to open on demand and stay (as when I make one screenshot, I usually take several immediately afterwards) and then close it when everything is set up (so the previous session isn't in the way). As it is right now it's easy to forget the first one didn't count.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions