Shortkeys not working after update Gnome Wayland

I found a workaround.

I could see when I ran Flameshot from the terminal.

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

So, Flameshot works but needs that QT_QPA_PLATFORM variable to be wayland.

In Gnome custom shortkeys, I tried al of these and it didn’t work.

1. QT_QPA_PLATFORM=wayland && flameshot gui
2. QT_QPA_PLATFORM=wayland; flameshot gui
3. QT_QPA_PLATFORM=wayland in .zshrc

The actual workaround was to write a bash script and put it in $USER/.local/bin

  1. nano takescreenshotfull
  2. #!/bin/bash
    
    QT_QPA_PLATFORM=wayland
    flameshot full --path <screenshots_dir>   #    ~ and $USER in <screenshots_dir> could cause issues
    
  3. chmod +x $USER/.local/bin/takescreenshotfull
  4. In Gnome custom shortkeys, fill in command field with takescreenshotfull