NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.57k stars 13.72k forks source link

Flameshot repeatedly asks for "Use QT_QPA_PLATFORM=wayland to run on Wayland anyway" #272116

Open bashfulrobot opened 9 months ago

bashfulrobot commented 9 months ago

Describe the bug

After the latest update, Flameshot no longer works.

λ flameshot gui
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install flamshot from nixpkgs
  2. open a terminal
  3. Ensure QT_QPA_PLATFORM=wayland is set
  4. run flameshot gui

Expected behavior

I would have expected the screen selector to show up so I could take a screenshot.

Other Info

λ gnome-shell --version
GNOME Shell 45.1
λ echo $QT_QPA_PLATFORM
wayland
λ flameshot --version
Flameshot v12.1.0 (-)
Compiled with Qt 5.15.11

Notify maintainers

Metadata

λ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.63, NixOS, 24.05 (Uakari), 24.05.20231129.e92039b`
 - multi-user?: `yes`
 - sandbox: `relaxed`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Add a :+1: reaction to issues you find important.

SuperSandro2000 commented 6 months ago

This sounds like https://github.com/flameshot-org/flameshot/issues/3473