In versions of mutter ≥ 3.35.92, you can set the timeout used to check if a window is still alive. This is also useful for X-forwarding over ssh with high latency. For example, you can set the timeout to 60 s (60000 ms) using:
gsettings set org.gnome.mutter check-alive-timeout 60000
If you use CinnamonAs described in the key's definition, try:a timeout value of 0 will disable the dialog box completely.
gsettings set org.cinnamon.muffin check-alive-timeout 60000
orFor Cinnamon desktop (a desktop environment based on Gnome), the the "org.cinnamon.muffin" schema should be used in place of "org.gnome.mutter".
gsettings set org.cinnamon.muffin check-alive-timeout 0