flameshot-org / flameshot

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

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

Open aljustiet opened 5 days ago

aljustiet commented 5 days ago

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

https://github.com/user-attachments/assets/bf76bfa7-6fa1-473a-86c9-172fcf1295cd

System Information

Hyprland.

ItzSelenux commented 4 days ago

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 commented 3 days ago

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?