and add to ~/.config/sway/config.d/autostart_applications this:
# GTK3 applications take a long time to start
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
exec hash dbus-update-activation-environment 2>/dev/null && \
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
but still flameshot giving an error like:
[vokhirion@canavar ~]$ flameshot
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
I tried to add it shortcuts as flameshot gui but didnt work, so I wanted to see error details and now I’m testing it with using terminal command flameshot, its opening but doesnt take screenshots and not giving an error before quitting.