I'm on mac, but I used to have the same problem also in other apps: I use a system wide app that makes you long press cmd-Q to quit any app (with an allow/block list): "SlowQuitApp". Just in case you never thought to try to find something similar (assuming ctrl-q is a common shortcut in linux, I forgot)