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

flameshot: error: Unable to detect desktop environment (GNOME? KDE? Sway? ...) #3737

Open
aljustiet opened this issue Sep 23, 2024 · 7 comments
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.

Comments

@aljustiet
Copy link

aljustiet commented Sep 23, 2024

Flameshot Version

Flameshot 12.1.0-5
DE: Hyprland

Installation Type

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

Operating System type and version

Arch/Hyprland

Description

Doesn't support the Hyprland XDG_CURRENT_DESKTOP environment.
If I set it to Sway, it works. Can you make it work on Hyprland too?

Steps to reproduce

  1. flameshot gui
  2. get an error

Screenshots or screen recordings

1.mp4

System Information

Hyprland.

@aljustiet aljustiet added the Unconfirmed Bug The bug is not confirmed by anyone else. label Sep 23, 2024
@ItzSelenux
Copy link

from https://github.com/flameshot-org/flameshot/blob/master/docs/Sway%20and%20wlroots%20support.md#river-wlroots-support

XDG_CURRENT_DESKTOP=sway flameshot

in your hyprland.conf you can also do:

env = XDG_CURRENT_DESKTOP,sway

@aljustiet
Copy link
Author

from https://github.com/flameshot-org/flameshot/blob/master/docs/Sway%20and%20wlroots%20support.md#river-wlroots-support

XDG_CURRENT_DESKTOP=sway flameshot

in your hyprland.conf you can also do:

env = XDG_CURRENT_DESKTOP,sway

Why can't you include hyprland for the xdg_current_desktop env var in the codebase too?

@enk-it
Copy link

enk-it commented Oct 14, 2024

Looks lite it is added

but something still goes wrong. Could it be related to Aquamarine? IIRC it does what wlroots does usualy.
Can confirm btw
Upd: can not confirm on flameshot-git

@marcelarie
Copy link

any fix on this? it should work with sway and Hyprland as $XDG_CURRENT_DESKTOP

@enk-it
Copy link

enk-it commented Oct 17, 2024

any fix on this? it should work with sway and Hyprland as $XDG_CURRENT_DESKTOP

Have you tried -git version, if you are on arch? It should already work

@marcelarie
Copy link

it does but when I try to do the screenshot it zooms a lot in the screen. I have two 4k screens.

@enk-it
Copy link

enk-it commented Oct 17, 2024

it does but when I try to do the screenshot it zooms a lot in the screen. I have two 4k screens.

Don't you want to open a new issue for this, it is another problem isn't it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.
Projects
None yet
Development

No branches or pull requests

4 participants