flameshot-org / flameshot

Powerful yet simple to use screenshot software :desktop_computer: :camera_flash:

Home Page:https://flameshot.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2 errors when running flameshot gui and flameshot screen

ukcai696969 opened this issue · comments

Flameshot Version

Flameshot v12.1.0 (Debian 12.1.0-2)
Compiled with Qt 5.15.8

Installation Type

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

Operating System type and version

Flameshot v12.1.0 (Debian 12.1.0-2) Compiled with Qt 5.15.8

Description

when running both flameshot gui and flameshot gui this error happens:

ukcai6969@penguin:~$ flameshot screen
flameshot: error: Unable to detect desktop environment (GNOME? KDE? Sway? ...)
flameshot: error: Hint: try setting the XDG_CURRENT_DESKTOP environment variable.
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.
ukcai6969@penguin:~$ flameshot gui
flameshot: error: Unable to detect desktop environment (GNOME? KDE? Sway? ...)
flameshot: error: Hint: try setting the XDG_CURRENT_DESKTOP environment variable.
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.

Steps to reproduce

1.run flameshot gui or flameshot screen

Screenshots or screen recordings

image

System Information

debian

flameshot config loads then config menu

As you can see, it is failing to detect your Desktop Environment. Also, in the bug report form we explicitly asked you to provide your Desktop Environment and your Display server protocol.

Please provide these information. If you don't know how to obtain these information, please refer to our help page:

https://flameshot.org/docs/guide/issue-reporting/

This bug report in this current state is invalid as it lacks essential information. Thank you.

P.s: I also edited your post as you forgot to add markdown code fences around the output.

The command retuns nothing.
image

the command: xrandr --listactivemonitors
image

@ukcai696969 This is weird. Why your monitor says xwayland? Why that weird resolution? Are you using VNC or some other remote desktop?

Also, you still didn't provide your Desktop Environment.

If you really don't know how, just install inxi (probably something like apt install inxi) and then run:

inxi --system --graphics --width 80

and copy-paste the output here.

This will collect your "system" and "graphics" information that we need.

@mmahmoudian Hello, im just using a chromebook, with the bulit in linux term.

The command output was:
image

I'm sorry to bring it up to you, but you are not using Linux. You are using ChromeOS with a virtual Linux. This means practically you are not using GNU/Linux as your main OS:

https://support.google.com/chromebook/answer/9145439?hl=en

As far as I understand, you cannot use Flameshot or any other screenshot tools from a virtualized guest OS to access the host display.

I close this issue as it cannot and will not be "fixed".

okay thanks

Just to clarify more, you have ChromeOS and inside that you have virtualized a Debian. But that Debian doesn't have it's own monitor or display, and even it is not showing anything (because you are not running a graphical software in it). Your Flameshot is sitting inside this virtual environment. Then you have your browser or Discord in your ChromeOS.

So Flameshot that is inside that machine has no way to escape the virtualized environment and take a photo of the software that is on your ChromeOS. So unless ChromeOS provides your monitor output to the virtual environment).

If you want to use Flameshot, you should have Linux, MacOS, Windows, or BSD installed on your machine. But I don't know if ChromeBook allows you to change the Operating System ti something else.

Perhaps you should ask in ChromeBook forums and see what others have done.

Good luck

@mmahmoudian thanks, i can install .deb files i know that probs isn’t helpful but is there a way to install flameshot by a .deb?

You can download the deb file from this link

https://github.com/flameshot-org/flameshot/releases

But remember that tour issue is that you are not running Debian natively. You are virtualizing Debian on ChromeOS which does not have access to your ChromeOS monitor.