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

[KWin Wayland] flameshot doesn't start when $XDG_PICTURES_DIR is invalid #3791

Open
oficsu opened this issue Nov 28, 2024 · 1 comment
Open
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.

Comments

@oficsu
Copy link

oficsu commented Nov 28, 2024

Flameshot Version

Flameshot v12.1.0 (-)
Compiled with Qt 5.15.14
(From Manjaro repository)

Installation Type

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

Operating System type and version

Manjaro, Debian 12

Description

In contrast to KDE Xorg session or GNOME Wayland session, flameshot can't capture screen in KDE Wayland session if XDG_PICTURES_DIR is invalid

Steps to reproduce

  1. Open ~/.config/user-dirs.dirs;
  2. set XDG_PICTURES_DIR to "$HOME/DOES_NOT_EXIST" (or even /var/empty);
  3. save the file;
  4. run flameshot gui (it won't run):
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
flameshot: info: Screenshot aborted.

Screenshots or screen recordings

No response

System Information

KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
xdg-desktop-portal-kde: 6.1.5-1.0
kwin_wayland: 6.1.5

@oficsu oficsu added the Unconfirmed Bug The bug is not confirmed by anyone else. label Nov 28, 2024
@oficsu
Copy link
Author

oficsu commented Nov 28, 2024

It is also worth noting that if XDG_PICTURES_DIR points to a valid directory containing images, flameshot will read them on startup (according to strace). Is this behavior intended?

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

1 participant