flameshot-org / flameshot

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

flameshot: error: Unable to capture screen #3272

Open aohanhongzhi opened 1 year ago

aohanhongzhi commented 1 year ago

Flameshot Version

v12.1.0

Installation Type

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

Operating System type and version

Ubuntu 23.04 Wayland

Description

eric@eric-H310M-S2-2-0:~/Project/CPP/flameshot$ flameshot gui
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.

Steps to reproduce

  1. run eric@eric-H310M-S2-2-0:~/Project/CPP/flameshot$ flameshot gui

Screenshots or screen recordings

eric@eric-H310M-S2-2-0:~/Project/CPP/flameshot$ flameshot gui
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.

System Information

Ubuntu 23.04 Wayland

mmahmoudian commented 1 year ago

I'm so tempted to mark this as invalid. There are inconsistencies in the report, and there are critical information missing. We have put clear instructions on how to collect certain info and add them.

Would you please:

  1. confirm how you have installed Flameshot
  2. clarify what is your desktop environment
  3. confirm that you have searched the among the open and closed issue before opening this issue
aohanhongzhi commented 1 year ago

I'm so tempted to mark this as invalid. There are inconsistencies in the report, and there are critical information missing. We have put clear instructions on how to collect certain info and add them.

Would you please:

  1. confirm how you have installed Flameshot
  2. clarify what is your desktop environment
  3. confirm that you have searched the among the open and closed issue before opening this issue
  1. download the deb file from github release
  2. ubuntu 23.04 wayland
  3. yes
v1doer1 commented 1 year ago

I'm so tempted to mark this as invalid. There are inconsistencies in the report, and there are critical information missing. We have put clear instructions on how to collect certain info and add them. Would you please:

  1. confirm how you have installed Flameshot
  2. clarify what is your desktop environment
  3. confirm that you have searched the among the open and closed issue before opening this issue
1. download the deb file from github release

2. ubuntu 23.04 wayland

3. yes

I have the same issue after a fresh install and have no solution yet. My previous installation was the same but it was upgraded from Ubuntu 22 and I had no issue with flameshot.

mrmaxonline commented 10 months ago

ubuntu 23.10 from terminal flameshot gui work fine pressing PrtSrc - Unable to capture screen image

DameerGamlet commented 10 months ago

ubuntu 23.10 from terminal flameshot gui work fine pressing PrtSrc - Unable to capture screen image

did you manage to solve it? if so, how?

v1doer1 commented 10 months ago

ubuntu 23.10 from terminal flameshot gui work fine pressing PrtSrc - Unable to capture screen image

did you manage to solve it? if so, how?

Unfotunately. I haven't found any working solution to make the shortcut or system tray menu commands work. Only terminal shortcut works.

DameerGamlet commented 10 months ago

ubuntu 23.10 from terminal flameshot gui work fine pressing PrtSrc - Unable to capture screen image

did you manage to solve it? if so, how?

Unfotunately. I haven't found any working solution to make the shortcut or system tray menu commands work. Only terminal shortcut works.

I found a workaround. Namely:

image

I can say this. After the first execution from the tray (in my case) screenshots are executed correctly, I advise you to give it a try

mrmaxonline commented 10 months ago

ubuntu 23.10 from terminal flameshot gui work fine pressing PrtSrc - Unable to capture screen image

did you manage to solve it? if so, how?

Unfotunately. I haven't found any working solution to make the shortcut or system tray menu commands work. Only terminal shortcut works.

I found a workaround. Namely:

image

I can say this. After the first execution from the tray (in my case) screenshots are executed correctly, I advise you to give it a try

My solution is:

image

cat flameshot.sh

! /bin/sh

env XDG_SESSION_TYPE= QT_QPA_PLATFORM=wayland /usr/bin/flameshot gui --delay 500

DameerGamlet commented 10 months ago

ubuntu 23.10 from terminal flameshot gui work fine pressing PrtSrc - Unable to capture screen image

did you manage to solve it? if so, how?

Unfotunately. I haven't found any working solution to make the shortcut or system tray menu commands work. Only terminal shortcut works.

I found a workaround. Namely: image I can say this. After the first execution from the tray (in my case) screenshots are executed correctly, I advise you to give it a try

My solution is:

image

cat flameshot.sh

! /bin/sh env XDG_SESSION_TYPE= QT_QPA_PLATFORM=wayland /usr/bin/flameshot gui --delay 500

Probably the best solution that works for me). Thank you

zippermonkey commented 10 months ago

ubuntu 23.10 from terminal flameshot gui work fine pressing PrtSrc - Unable to capture screen image

did you manage to solve it? if so, how?

Unfotunately. I haven't found any working solution to make the shortcut or system tray menu commands work. Only terminal shortcut works.

I found a workaround. Namely: image I can say this. After the first execution from the tray (in my case) screenshots are executed correctly, I advise you to give it a try

My solution is:

image

cat flameshot.sh

! /bin/sh env XDG_SESSION_TYPE= QT_QPA_PLATFORM=wayland /usr/bin/flameshot gui --delay 500

Unfotunately, the two methods are not working for me.

I tried launch flameshot in gnome-terminal with flameshot gui, but it just stucked, and nothing happened.

图片

Wdam commented 9 months ago

ubuntu 23.10 from terminal flameshot gui work fine pressing PrtSrc - Unable to capture screen image

did you manage to solve it? if so, how?

Unfotunately. I haven't found any working solution to make the shortcut or system tray menu commands work. Only terminal shortcut works.

I found a workaround. Namely: image I can say this. After the first execution from the tray (in my case) screenshots are executed correctly, I advise you to give it a try

My solution is:

image

cat flameshot.sh

! /bin/sh env XDG_SESSION_TYPE= QT_QPA_PLATFORM=wayland /usr/bin/flameshot gui --delay 500

it work for me