flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

Copy to clipboard doesn't work in 11.0.0 version on Windows

Open DDamianoff opened this issue 2 years ago • 10 comments

Flameshot Version

11.0.0

Installation Type

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

Operating System type and version

WIndows 10 Pro 64bit Build 19044.1706

Description

As the title says, just doesn't copy the image to the clipboard. I tried reinstalling the app and same thing.

I just downgraded to the version 0.10.2-win64 and now works fine.

Steps to reproduce

  1. start the app.
  2. Select an area.
  3. Press Ctrl+C.
  4. Try to paste it in somewhere (nothing happens).

Screenshots or screen recordings

No response

System Information

Device name JW2 Processor AMD A8-7650K Radeon R7, 10 Compute Cores 4C+6G 3.30 GHz Installed RAM 8,00 GB (6,96 GB usable) System type 64-bit operating system, x64-based processor

Edition Windows 10 Pro Version 21H2 Installed on ‎5/‎5/‎2022 OS build 19044.1706 Experience Windows Feature Experience Pack 120.2212.4170.0

Edit: Corrected "previous version" number.

DDamianoff avatar Jun 08 '22 00:06 DDamianoff

Can you post your config file and clarify if you installed with the .msi or are running the portable vesion?

It works on my test windows 11 box.

borgmanJeremy avatar Jun 08 '22 00:06 borgmanJeremy

Can you clarify if you installed with the .msi or are running the portable vesion?

msi version.

Can you post your config file?

Sure! Where can I find it?

DDamianoff avatar Jun 08 '22 00:06 DDamianoff

Sure:

C:\Users\Jeremy\AppData\Roaming\flameshot\flameshot.ini

borgmanJeremy avatar Jun 08 '22 00:06 borgmanJeremy

Same bug here... flameshot.zip

iyhonetic avatar Jun 10 '22 10:06 iyhonetic

Same bug here... flameshot.zip

the content of the file flameshot.ini:

[Shortcuts] TYPE_PENCIL=P TYPE_DRAWER=D TYPE_ARROW=A TYPE_SELECTION=S TYPE_RECTANGLE=R TYPE_CIRCLE=C TYPE_MARKER=M TYPE_TEXT=T TYPE_PIXELATE=B TYPE_CIRCLECOUNT= TYPE_SELECTIONINDICATOR= TYPE_MOVESELECTION=Ctrl+M TYPE_UNDO=Ctrl+Z TYPE_REDO=Ctrl+Shift+Z TYPE_COPY=Ctrl+C TYPE_SAVE=Ctrl+S TYPE_EXIT=Ctrl+Q TYPE_PIN= TYPE_TOGGLE_PANEL=Space TYPE_RESIZE_LEFT=Shift+Left TYPE_RESIZE_RIGHT=Shift+Right TYPE_RESIZE_UP=Shift+Up TYPE_RESIZE_DOWN=Shift+Down TYPE_SELECT_ALL=Ctrl+A TYPE_MOVE_LEFT=Left TYPE_MOVE_RIGHT=Right TYPE_MOVE_UP=Up TYPE_MOVE_DOWN=Down TYPE_COMMIT_CURRENT_TOOL=Ctrl+Return TYPE_DELETE_CURRENT_TOOL=Del

[General] copyPathAfterSave=false showStartupLaunchMessage=false uploadWithoutConfirmation=true useJpgForClipboard=true

Alaskra avatar Jun 23 '22 01:06 Alaskra

The problem is cause by this line:

useJpgForClipboard=true

If delete it, copy to clipboard can work.

Alaskra avatar Jun 23 '22 01:06 Alaskra

image This option don't work on windows, if I set it, then no capture will be copied to clipboard.

Alaskra avatar Jun 24 '22 09:06 Alaskra

It seems not easy to copy image as jpg in windows, https://github.com/flameshot-org/flameshot/blob/b4737f8ac65083c084696811c021bcb61fa750ac/src/utils/screenshotsaver.cpp#L116-L117 these lines are no use in windows, as this post shows. It also dosen't work on MacOS as comment says. I try a lot but can't find a way to fix. Maybe we should hide this option for windows and mac.

Alaskra avatar Jun 24 '22 09:06 Alaskra

Have the same problem if run flameshot by command ./flameshot gui If run by ./flameshot and click to flameshot icon in systray, copy to clipboard working fine.

or using bash cript by hotkeys ./flameshot & ./flameshot gui

If used command pkill flameshot or killall flameshot before paste image to graphic editor, clipboard is clearing.

Checked with flameshot 12.0 and 12.1 OS: LiniuxMint 20.3

demonlibra avatar Jul 05 '22 05:07 demonlibra

run script

./flameshot &
./flameshot gui
sleep 10
killall flameshot

After that I can past image during 10 seconds . Looks like while closing flameshot clearing clipboard.

demonlibra avatar Jul 05 '22 20:07 demonlibra